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

Function test_stl_allocator3

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

Source from the content-addressed store, hash-verified

135}
136
137static bool test_stl_allocator3() {
138 std::vector<int, mi_heap_stl_allocator<int> > vec;
139 vec.push_back(1);
140 vec.pop_back();
141 return vec.size() == 0;
142}
143
144static bool test_stl_allocator4() {
145 std::vector<some_struct, mi_heap_stl_allocator<some_struct> > vec;

Callers 1

test_stl_allocatorsFunction · 0.85

Calls 3

push_backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected