Files
42_irc/includes/unstd/string.hpp
2024-01-25 17:04:42 +01:00

34 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* string.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/20 19:13:26 by maldavid #+# #+# */
/* Updated: 2024/01/25 15:20:00 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __UNSTD_STRING__
#define __UNSTD_STRING__
#include <sstream>
#include <string>
#include <vector>
namespace unstd
{
template <typename T>
std::string toString(T n)
{
std::ostringstream ss;
ss << n;
return ss.str();
}
std::vector<std::string> split(const std::string& s, char delim);
}
#endif