昨天晚上,我徒弟跑过来讲,他的程序的内存占用居高不下,愿意是std::map的clear()没有效果。于是我让他用erase(begin,end); 试试也不行。代码如下:void release_map(void){ map testmap; for(int i=0; iSimplywraps::operatornewand::operatordelete.__gnu_cxx::malloc_allocatorSimplywrapsmallocandfree.Thereisalsoahookforanout-of-memoryhandler__gnu_cxx::debug_all...
Read More