MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / joinToString

Function joinToString

CesiumUtility/include/CesiumUtility/joinToString.h:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 */
17template <class TIterator>
18std::string
19joinToString(TIterator begin, TIterator end, const std::string& separator) {
20 if (begin == end)
21 return std::string();
22
23 std::string first = *begin;
24
25 return std::accumulate(
26 ++begin,
27 end,
28 std::move(first),
29 [&separator](const std::string& acc, const std::string& element) {
30 return acc + separator + element;
31 });
32}
33
34/**
35 * @brief Joins multiple elements together into a string, separated by a given

Callers 11

logErrorFunction · 0.85
logWarningFunction · 0.85
formatFunction · 0.85
authorizeMethod · 0.85
loadCreditsMethod · 0.85
fetchAttributionDataFunction · 0.85
resolveExternalDataMethod · 0.85
loadSubtreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected