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

Function test_stl_allocator2

3rd/mimalloc-2.0.9/test/test-api.c:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319struct some_struct { int i; int j; double z; };
320
321bool test_stl_allocator2() {
322#ifdef __cplusplus
323 std::vector<some_struct, mi_stl_allocator<some_struct> > vec;
324 vec.push_back(some_struct());
325 vec.pop_back();
326 return vec.size() == 0;
327#else
328 return true;
329#endif
330}

Callers 1

mainFunction · 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