map的erase()释放内存
摘要:
STL中的map调用erase(it),当value值为指针时,释放内存: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 struct value{ 7 int i; 8 std::string te... 阅读全文
posted @ 2015-07-09 11:08 阳台 阅读(1836) 评论(0) 推荐(0)
posted @ 2015-07-09 11:08 阳台 阅读(1836) 评论(0) 推荐(0)