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