Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "utils/labeled_tuple.hpp" |
| 4 | |
| 5 | #include <iomanip> |
| 6 | |
| 7 | namespace utils |
| 8 | { |
| 9 | |
| 10 | template <class... Args, class... Labels> |
Patrick Williams | 583ba44 | 2025-02-03 14:28:19 -0500 | [diff] [blame^] | 11 | inline void PrintTo( |
| 12 | const LabeledTuple<std::tuple<Args...>, Labels...>& labeledTuple, |
| 13 | std::ostream* os) |
Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 14 | { |
| 15 | nlohmann::json json; |
| 16 | to_json(json, labeledTuple); |
| 17 | |
| 18 | (*os) << std::setw(2) << json; |
| 19 | } |
| 20 | |
| 21 | } // namespace utils |