mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
update documentation
This commit is contained in:
parent
3957b2fd28
commit
5bc1c52ae6
27 changed files with 547 additions and 227 deletions
|
@ -71,16 +71,16 @@ static Static s = Static();
|
|||
|
||||
|
||||
bool test_stl_allocator1() {
|
||||
std::vector<int, mi_stl_allocator<int>> vec;
|
||||
std::vector<int, mi_stl_allocator<int> > vec;
|
||||
vec.push_back(1);
|
||||
vec.pop_back();
|
||||
return vec.size() == 0;
|
||||
}
|
||||
|
||||
bool test_stl_allocator2() {
|
||||
struct some_struct { int i; int j; double z; };
|
||||
struct some_struct { int i; int j; double z; };
|
||||
|
||||
std::vector<some_struct, mi_stl_allocator<some_struct>> vec;
|
||||
bool test_stl_allocator2() {
|
||||
std::vector<some_struct, mi_stl_allocator<some_struct> > vec;
|
||||
vec.push_back(some_struct());
|
||||
vec.pop_back();
|
||||
return vec.size() == 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue