MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / join

Function join

subprojects/llama.cpp/tools/llama-bench/llama-bench.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80template <class T> static std::string join(const std::vector<T> & values, const std::string & delim) {
81 std::ostringstream str;
82 for (size_t i = 0; i < values.size(); i++) {
83 str << values[i];
84 if (i < values.size() - 1) {
85 str << delim;
86 }
87 }
88 return str.str();
89}
90
91template <typename T, typename F> static std::vector<std::string> transform_to_str(const std::vector<T> & values, F f) {
92 std::vector<std::string> str_values;

Callers 10

get_cpu_infoFunction · 0.85
get_gpu_infoFunction · 0.85
devices_to_stringFunction · 0.85
print_usageFunction · 0.85
get_backendMethod · 0.85
print_headerMethod · 0.85
print_testMethod · 0.85
print_testMethod · 0.85
print_testMethod · 0.85
print_testMethod · 0.85

Calls 2

sizeMethod · 0.65
strMethod · 0.45

Tested by

no test coverage detected