昨天晚上,我徒弟跑过来讲,他的程序的内存占用居高不下,愿意是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
posted @ 2013-08-09 17:15
明将军
Views(7054)
Comments(3)
Diggs(0)

浙公网安备 33010602011771号