内存管理c++2.0
使用__pool_alloc代替默认的内存分配器,可以省掉大量的malloc分配导致的cookie所占用的内存
std::vector<std::string, __gnu_cxx::__pool_alloc<std::string>> v;
使用__pool_alloc代替默认的内存分配器,可以省掉大量的malloc分配导致的cookie所占用的内存
std::vector<std::string, __gnu_cxx::__pool_alloc<std::string>> v;