MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / test_stl_allocator4

Function test_stl_allocator4

3rd/mimalloc-2.0.9/test/main-override.cpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static bool test_stl_allocator4() {
145 std::vector<some_struct, mi_heap_stl_allocator<some_struct> > vec;
146 vec.push_back(some_struct());
147 vec.pop_back();
148 return vec.size() == 0;
149}
150
151static bool test_stl_allocator5() {
152 std::vector<int, mi_heap_destroy_stl_allocator<int> > vec;

Callers 1

test_stl_allocatorsFunction · 0.85

Calls 4

some_structClass · 0.70
push_backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected