mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
18 lines
276 B
C++
18 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) */
|