MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / join

Function join

src/core/utils/StringUtils.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66std::string join(const std::vector<std::string> strings, const std::string &sep)
67{
68 if (strings.empty())
69 {
70 return "";
71 }
72 return std::accumulate(std::next(strings.begin()), strings.end(), strings.at(0),
73 [&sep](const std::string &a, const std::string &b) { return a + sep + b; });
74}
75} // namespace arm_compute

Callers

nothing calls this directly

Calls 4

accumulateFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected