blob: a5b92bc5fb840de64ec23af898c9f91ca13ac66c [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>
Patrick Williams583ba442025-02-03 14:28:19 -050011inline void PrintTo(
12 const LabeledTuple<std::tuple<Args...>, Labels...>& labeledTuple,
13 std::ostream* os)
Krzysztof Grobelnydcc4e192021-03-08 09:09:34 +000014{
15 nlohmann::json json;
16 to_json(json, labeledTuple);
17
18 (*os) << std::setw(2) << json;
19}
20
21} // namespace utils