MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / join

Function join

simcore/framework/src/cli/cli.hpp:186–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184/// Simple function to join a string
185template <typename T>
186std::string join(const T &v, std::string delim = ",") {
187 std::ostringstream s;
188 auto beg = std::begin(v);
189 auto end = std::end(v);
190 if (beg != end) s << *beg++;
191 while (beg != end) {
192 s << delim << *beg++;
193 }
194 return s.str();
195}
196
197/// Simple function to join a string from processed elements
198template <typename T, typename Callable,

Callers 15

UpgradeFromV4toV5Function · 0.85
ConversionErrorMethod · 0.85
to_stringFunction · 0.85
fullnameMethod · 0.85
generate_setFunction · 0.85
generate_mapFunction · 0.85
CheckedTransformerMethod · 0.85
get_nameMethod · 0.85
_reduce_resultsMethod · 0.85
_process_requirementsMethod · 0.85
simpleFunction · 0.85
make_usageMethod · 0.85

Calls 3

beginFunction · 0.85
endFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected