From 3f44011ea2894e618c8fdd361e3b7f7260bf7a04 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 5 May 2025 03:24:36 +0800 Subject: [PATCH] =?UTF-8?q?Macro.h=E5=A2=9E=E5=8A=A0SAFE=5FCLEAR=5FSTD=5FM?= =?UTF-8?q?AP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/Macro.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/hgl/Macro.h b/inc/hgl/Macro.h index 4fd5fa2..03cbf7b 100644 --- a/inc/hgl/Macro.h +++ b/inc/hgl/Macro.h @@ -77,4 +77,6 @@ namespace hgl name=nullptr; \ } \ } -}//namespace hgl \ No newline at end of file + + #define SAFE_CLEAR_STD_MAP(name) {for(auto &it:name)delete it.second;} +}//namespace hgl