| 539 | |
| 540 | template<typename T> |
| 541 | inline static std::string Join(const std::vector<T>& strs, const char* delimiter) { |
| 542 | if (strs.empty()) { |
| 543 | return std::string(""); |
| 544 | } |
| 545 | std::stringstream str_buf; |
| 546 | str_buf << std::setprecision(std::numeric_limits<double>::digits10 + 2); |
| 547 | str_buf << strs[0]; |
| 548 | for (size_t i = 1; i < strs.size(); ++i) { |
| 549 | str_buf << delimiter; |
| 550 | str_buf << strs[i]; |
| 551 | } |
| 552 | return str_buf.str(); |
| 553 | } |
| 554 | |
| 555 | template<> |
| 556 | inline std::string Join<int8_t>(const std::vector<int8_t>& strs, const char* delimiter) { |
no test coverage detected