I would like to copy the contents of a vector to one long string with a custom delimiter. So far, I\'ve tried:
vector
string
// .h string getLabe
C++11:
vector x = {"1", "2", "3"}; string s = std::accumulate(std::begin(x), std::end(x), string(), [](string &ss, string &s) { return ss.empty() ? s : ss + "," + s; });