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

Class TDefaultFormatter

library/cpp/yt/string/string.h:19–26  ·  view source on GitHub ↗

Formatters enable customizable way to turn an object into a string. This default implementation uses |FormatValue|.

Source from the content-addressed store, hash-verified

17//! Formatters enable customizable way to turn an object into a string.
18//! This default implementation uses |FormatValue|.
19struct TDefaultFormatter
20{
21 template <class T>
22 void operator()(TStringBuilderBase* builder, const T& obj) const
23 {
24 FormatValue(builder, obj, TStringBuf("v"));
25 }
26};
27
28//! Bind spec to a formatter.
29//! Used in ranges processing.

Callers 3

FormatValueFunction · 0.85
JoinToStringFunction · 0.85
ConvertToStringsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected