Macro.h增加SAFE_CLEAR_STD_MAP
This commit is contained in:
@@ -77,4 +77,6 @@ namespace hgl
|
||||
name=nullptr; \
|
||||
} \
|
||||
}
|
||||
}//namespace hgl
|
||||
|
||||
#define SAFE_CLEAR_STD_MAP(name) {for(auto &it:name)delete it.second;}
|
||||
}//namespace hgl
|
||||
|
Reference in New Issue
Block a user