| 78 | } |
| 79 | |
| 80 | template <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 | |
| 91 | template <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; |
no test coverage detected