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

Function test_stl_allocator1

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

Source from the content-addressed store, hash-verified

119
120
121static bool test_stl_allocator1() {
122 std::vector<int, mi_stl_allocator<int> > vec;
123 vec.push_back(1);
124 vec.pop_back();
125 return vec.size() == 0;
126}
127
128struct some_struct { int i; int j; double z; };
129

Callers 1

test_stl_allocatorsFunction · 0.70

Calls 3

push_backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected