MCPcopy Create free account
hub / github.com/dmlc/parameter_server / join

Function join

src/util/split.h:21–28  ·  view source on GitHub ↗

TODO support bool skip_empty = false

Source from the content-addressed store, hash-verified

19
20// TODO support bool skip_empty = false
21inline std::string join(const std::vector<std::string> &elems, const string& delim) {
22 std::string str;
23 for (int i = 0; i < elems.size() - 1; ++i) {
24 str += elems[i] + delim;
25 }
26 str += elems.back();
27 return str;
28}
29
30} // namespace PS

Callers 3

divideFeatureBlocksMethod · 0.85
getPathFunction · 0.85
removeExtensionFunction · 0.85

Calls 2

backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected