MCPcopy Create free account
hub / github.com/XiaoMi/mace / MakeListString

Function MakeListString

include/mace/utils/string_util.h:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template <typename T>
58std::string MakeListString(const T *args, size_t size) {
59 std::stringstream ss;
60 ss << "[";
61 for (size_t i = 0; i < size; ++i) {
62 ss << args[i];
63 if (i < size - 1) {
64 ss << ", ";
65 }
66 }
67 ss << "]";
68 return ss.str();
69}
70
71template <typename T>
72std::string MakeString(const std::vector<T> &args) {

Callers 1

MakeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected