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

Method CheckMoveAlloc

util/memory/pool_ut.cpp:229–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228 template <typename T>
229 void CheckMoveAlloc() {
230 TMemoryPool pool(10 * sizeof(T));
231
232 TVector<T, TPoolAllocator> elems(&pool);
233 elems.reserve(1);
234 elems.emplace_back();
235 elems.resize(100);
236 }
237
238 void TestMoveAlloc() {
239 CheckMoveAlloc<TNoMove>();

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.45
emplace_backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected