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

Function Format

library/cpp/yt/string/format-inl.h:1277–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275
1276template <class... TArgs>
1277void Format(TStringBuilderBase* builder, TFormatString<TArgs...> format, TArgs&&... args)
1278{
1279 // NB(arkady-e1ppa): "if constexpr" is done in order to prevent
1280 // compiler from emitting "No matching function to call"
1281 // when arguments are not formattable.
1282 // Compiler would crash in TFormatString ctor
1283 // anyway (e.g. program would not compile) but
1284 // for some reason it does look ahead and emits
1285 // a second error.
1286 if constexpr ((CFormattable<TArgs> && ...)) {
1287 NYT::NDetail::TValueFormatter<0, TArgs...> formatter(args...);
1288 NYT::NDetail::RunFormatter(builder, format, formatter);
1289 }
1290}
1291
1292template <class... TArgs>
1293TString Format(TFormatString<TArgs...> format, TArgs&&... args)

Callers 13

DecodeEnumValueImplFunction · 0.70
AppendFormatMethod · 0.70
ParseBoolFunction · 0.70
FormatUnexpectedMarkerFunction · 0.50
ParseInt64FromYsonStringFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 2

RunFormatterFunction · 0.85
FlushMethod · 0.45

Tested by

no test coverage detected