11 std::string
to_string(
const std::string &
s, std::string begin =
"\"",
12 std::string end =
"\"") {
13 return begin +
s + end;
16 template <
typename T1,
typename T2>
17 std::string
to_string(
const std::pair<T1, T2> &value) {
22 template <
typename Iterator>
24 std::string begin =
"[", std::string end =
"]",
25 std::string delim =
", ") {
26 std::stringstream out;
29 while (begin_it != end_it) {
32 if (begin_it != end_it) {
41 std::string
to_string(
const std::vector<T> &container, std::string begin =
"[",
42 std::string end =
"]", std::string delim =
", ") {
47 template <
class T,
class Compare>
48 std::string
to_string(
const std::set<T, Compare> &container,
49 std::string begin =
"[", std::string end =
"]",
50 std::string delim =
", ") {
55 template <
class Key,
class T,
class Compare>
56 std::string
to_string(
const std::map<T, Key, Compare> &container,
57 std::string begin =
"{", std::string end =
"}",
58 std::string delim =
", ") {
std::set< std::string > & s
std::string to_string(ENUM val)
Return string representation of enum class.
std::string container_to_string(Iterator begin_it, Iterator end_it, std::string begin="[", std::string end="]", std::string delim=", ")