主题:wstring(token)生成的东西该如何删除?
wchar_t *token;
...
typedef multimap<CATEGORYTYPE,location>::value_type Value_TypeA;
categoryText_.insert(Value_TypeA(categoryType,make_pair(wstring(token),counter ++)));
这里的wstring(token) 会new一块memery,但是最后该怎么删除?
...
typedef multimap<CATEGORYTYPE,location>::value_type Value_TypeA;
categoryText_.insert(Value_TypeA(categoryType,make_pair(wstring(token),counter ++)));
这里的wstring(token) 会new一块memery,但是最后该怎么删除?