Macro.h增加SAFE_CLEAR_STD_MAP

This commit is contained in:
hyzboy 2025-05-05 03:24:36 +08:00
parent e1a8241d16
commit 3f44011ea2

View File

@ -77,4 +77,6 @@ namespace hgl
name=nullptr; \ name=nullptr; \
} \ } \
} }
}//namespace hgl
#define SAFE_CLEAR_STD_MAP(name) {for(auto &it:name)delete it.second;}
}//namespace hgl