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

Method Reserve

library/cpp/coroutine/engine/poller.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void Reserve(size_t len) {
32 len = FastClp2(len);
33
34 if (len > L_) {
35 B_.Reset(new T[len]);
36 L_ = len;
37 }
38 }
39
40 private:
41 TArrayHolder<T> B_;

Callers

nothing calls this directly

Calls 2

FastClp2Function · 0.85
ResetMethod · 0.45

Tested by

no test coverage detected