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

Method Allocate

library/cpp/yt/memory/unittests/free_list_ut.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 static TTestItemSet Allocate(size_t setSize)
64 {
65 TTestItemSet set;
66 for (size_t i = 0; i < setSize; ++i) {
67 Items_.push_back(std::make_unique<TTestItem>());
68 Items_.back()->IndexInSet = Items_.size() - 1;
69 set.Acquire(Items_.back().get());
70 }
71 return set;
72 }
73
74 void Acquire(TTestItem* item)
75 {

Callers

nothing calls this directly

Calls 5

push_backMethod · 0.45
backMethod · 0.45
sizeMethod · 0.45
AcquireMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected