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

Function ToReserve

util/folder/pathsplit.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6template <class T>
7static inline size_t ToReserve(const T& t) {
8 size_t ret = t.size() + 5;
9
10 for (auto it = t.begin(); it != t.end(); ++it) {
11 ret += it->size();
12 }
13
14 return ret;
15}
16
17void TPathSplitTraitsUnix::DoParseFirstPart(const TStringBuf part) {
18 if (part == TStringBuf(".")) {

Callers 1

DoReconstructMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected