adding ansi color codes
This commit is contained in:
29
includes/unstd/string.hpp
Normal file
29
includes/unstd/string.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* string.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/20 19:13:26 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/20 19:14:55 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef __UNSTD_STRING__
|
||||
#define __UNSTD_STRING__
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace unstd
|
||||
{
|
||||
template <typename T>
|
||||
std::string toString(T n)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
ss << n;
|
||||
return ss.str();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user