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