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

Function JoinToString

library/cpp/yt/string/string-inl.h:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 */
22template <std::forward_iterator TIterator, class TFormatter>
23void JoinToString(
24 TStringBuilderBase* builder,
25 const TIterator& begin,
26 const TIterator& end,
27 const TFormatter& formatter,
28 TStringBuf delimiter)
29{
30 for (auto current = begin; current != end; ++current) {
31 if (current != begin) {
32 builder->AppendString(delimiter);
33 }
34 formatter(builder, *current);
35 }
36}
37
38template <std::forward_iterator TIterator, class TFormatter>
39TString JoinToString(

Callers

nothing calls this directly

Calls 6

TDefaultFormatterClass · 0.85
formatterFunction · 0.50
beginFunction · 0.50
endFunction · 0.50
AppendStringMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected