I know how to do this in other languages, but not C++, which I am forced to use here.
I have a Set of Strings that I\'m printing to out in a list, and they need a co
I think this variant of @MarkB's answer strikes optimal balance of readability, simplicity and terseness:
auto iter= keywords.begin(); if (iter!=keywords.end()) { out << *iter; while(++iter != keywords.end()) out << "," << *iter; } out << endl;