17 template <
class TIterator>
19 joinToString(TIterator begin, TIterator end,
const std::string& separator) {
23 std::string first = *begin;
25 return std::accumulate(
29 [&separator](
const std::string& acc,
const std::string& element) {
30 return acc + separator + element;
43 template <
class TCollection>
44 std::string
joinToString(TCollection collection,
const std::string& separator) {
45 return joinToString(collection.cbegin(), collection.cend(), separator);
Utility classes for Cesium.
std::string joinToString(TIterator begin, TIterator end, const std::string &separator)
Joins multiple elements together into a string, separated by a given separator.