MCPcopy Create free account
hub / github.com/catboost/catboost / TSpecBoundFormatter

Class TSpecBoundFormatter

library/cpp/yt/string/string.h:30–45  ·  view source on GitHub ↗

Bind spec to a formatter. Used in ranges processing.

Source from the content-addressed store, hash-verified

28//! Bind spec to a formatter.
29//! Used in ranges processing.
30class TSpecBoundFormatter
31{
32public:
33 explicit TSpecBoundFormatter(TStringBuf spec)
34 : Spec_(spec)
35 { }
36
37 template <class T>
38 void operator()(TStringBuilderBase* builder, const T& obj) const
39 {
40 FormatValue(builder, obj, Spec_);
41 }
42
43private:
44 TStringBuf Spec_;
45};
46
47static constexpr TStringBuf DefaultJoinToStringDelimiter = ", ";
48static constexpr TStringBuf DefaultKeyValueDelimiter = ": ";

Callers 1

FormatValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected