9 class KV :
public std::pair<std::string, std::string>
12 static std::string
make_list(
bool first,
const T& t)
21 template <
typename T,
typename... Ts>
22 static std::string
make_list(
bool first,
const T& t, Ts&&... list)
30 static std::string
make_list(
bool first, std::vector<std::string> list)
33 std::copy(list.begin(), list.end() - 1, std::ostream_iterator<std::string>(s,
";"));
40 template <
typename... Ts>
41 KV(
const std::string& k,
const Ts&... list) :
std::pair<
std::string,
std::string>(k,
make_list(true, list...))
static std::string make_list(bool first, const T &t, Ts &&... list)
KV(const std::string &k, const Ts &... list)
static std::string make_list(bool first, std::vector< std::string > list)
static std::string make_list(bool first, const T &t)