STL 容器 vertor元素为结构体指针释放内存
结构体如下typedef struct _menuInfo{ int menu_type; std::string menu_name; int menu_id; std::string menu_libName;//std 对象}MenuInfoStruct;typedef std::vector<MenuInfoStruct*> MenuInfoStVec;在vector加入结构体指针因为结构体里面有std::string对象,不能使