MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / join

Function join

examples/llama-bench/llama-bench.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template<class T>
31static std::string join(const std::vector<T> & values, const std::string & delim) {
32 std::ostringstream str;
33 for (size_t i = 0; i < values.size(); i++) {
34 str << values[i];
35 if (i < values.size() - 1) {
36 str << delim;
37 }
38 }
39 return str.str();
40}
41
42template<class T>
43static std::vector<T> split(const std::string & str, char delim) {

Callers 5

print_usageFunction · 0.70
print_headerMethod · 0.70
print_testMethod · 0.70
print_testMethod · 0.70
print_testMethod · 0.70

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected