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

Function test_stl_allocator2

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

Source from the content-addressed store, hash-verified

128struct some_struct { int i; int j; double z; };
129
130static bool test_stl_allocator2() {
131 std::vector<some_struct, mi_stl_allocator<some_struct> > vec;
132 vec.push_back(some_struct());
133 vec.pop_back();
134 return vec.size() == 0;
135}
136
137static bool test_stl_allocator3() {
138 std::vector<int, mi_heap_stl_allocator<int> > vec;

Callers 1

test_stl_allocatorsFunction · 0.70

Calls 4

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

Tested by

no test coverage detected