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

Function test_stl_allocator1

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

Source from the content-addressed store, hash-verified

306}
307
308bool test_stl_allocator1() {
309#ifdef __cplusplus
310 std::vector<int, mi_stl_allocator<int> > vec;
311 vec.push_back(1);
312 vec.pop_back();
313 return vec.size() == 0;
314#else
315 return true;
316#endif
317}
318
319struct some_struct { int i; int j; double z; };
320

Callers 1

mainFunction · 0.70

Calls 3

push_backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected