| 269 | |
| 270 | template <typename T> |
| 271 | std::string OHDUtil::vec_as_string(const std::vector<T>& v) { |
| 272 | std::stringstream ss; |
| 273 | ss << "["; |
| 274 | for (int i = 0; i < v.size(); i++) { |
| 275 | ss << std::to_string(v[i]); |
| 276 | // ss<<v[i]; |
| 277 | if (i != v.size() - 1) { |
| 278 | ss << ","; |
| 279 | } |
| 280 | } |
| 281 | ss << "]"; |
| 282 | return ss.str(); |
| 283 | } |
| 284 | |
| 285 | std::string OHDUtil::str_vec_as_string(const std::vector<std::string>& v) { |
| 286 | std::stringstream ss; |