| 265 | |
| 266 | template <typename T> |
| 267 | std::string RowsOfOneColumn(std::string_view name, std::initializer_list<T> values, |
| 268 | decltype(std::to_string(*values.begin()))* = nullptr) { |
| 269 | std::stringstream ss; |
| 270 | for (auto value : values) { |
| 271 | ss << R"({")" << name << R"(":)" << std::to_string(value) << "}\n"; |
| 272 | } |
| 273 | return ss.str(); |
| 274 | } |
| 275 | |
| 276 | inline std::string RowsOfOneColumn(std::string_view name, |
| 277 | std::initializer_list<std::string> values) { |