mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-17 13:07:24 +02:00
19 lines
276 B
C++
19 lines
276 B
C++
|
|
#ifndef UTIL_STRINGIFY_HPP
|
||
|
|
#define UTIL_STRINGIFY_HPP
|
||
|
|
|
||
|
|
#include<sstream>
|
||
|
|
#include<string>
|
||
|
|
|
||
|
|
namespace Util {
|
||
|
|
|
||
|
|
template<typename a>
|
||
|
|
std::string stringify(a const& v) {
|
||
|
|
auto os = std::ostringstream();
|
||
|
|
os << v;
|
||
|
|
return os. str();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif /* !defined(UTIL_STRINGIFY_HPP) */
|