aboutsummaryrefslogtreecommitdiffstats
path: root/yt/yt/core/misc/range_formatters-inl.h
blob: b1e1d1cd78f7f37b3730244d8e62699ef62454cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef RANGE_FORMATTERS_INL_H_
#error "Direct inclusion of this file is not allowed, include range_formatters.h"
// For the sake of sane code completion.
#include "range_formatters.h"
#endif

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

template <class T>
void FormatValue(TStringBuilderBase* builder, const TRange<T>& collection, TStringBuf /*spec*/)
{
    NYT::FormatRange(builder, collection, TDefaultFormatter());
}

template <class T>
void FormatValue(TStringBuilderBase* builder, const TSharedRange<T>& collection, TStringBuf /*spec*/)
{
    NYT::FormatRange(builder, collection, TDefaultFormatter());
}

template <std::ranges::view T>
void FormatValue(TStringBuilderBase* builder, const T& collection, TStringBuf /*spec*/)
{
    NYT::FormatRange(builder, collection, TDefaultFormatter());
}

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT