blob: 4ee70c169aa069372f69bde0bb14830252290aa1 [file] [log] [blame]
Krzysztof Grobelnydcc4e192021-03-08 09:09:34 +00001#pragma once
2
3#include "utils/labeled_tuple.hpp"
4
5#include <iomanip>
6
7namespace utils
8{
9
10template <class... Args, class... Labels>
11inline void
12 PrintTo(const LabeledTuple<std::tuple<Args...>, Labels...>& labeledTuple,
13 std::ostream* os)
14{
15 nlohmann::json json;
16 to_json(json, labeledTuple);
17
18 (*os) << std::setw(2) << json;
19}
20
21} // namespace utils