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

Function GetLength

util/string/join.h:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace NPrivate {
46 template <typename T>
47 inline size_t GetLength(const T&) {
48 // By default don't pre-allocate space when joining and appending non-string types.
49 // This code can be extended by estimating stringified length for specific types (e.g. 10 for ui32).
50 return 0;
51 }
52
53 template <>
54 inline size_t GetLength(const TString& s) {

Callers 7

GetAppendLengthFunction · 0.70
JoinRangeFunction · 0.70
ResizeMethod · 0.50
ReserveMethod · 0.50
ShrinkToFitMethod · 0.50
CountCacheMethod · 0.50
PrefetchCacheMethod · 0.50

Calls 2

lengthFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected