From 43e328c7aa974df6ffb97f2568a6884921ef079b Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 13 Sep 2023 20:05:45 +0800 Subject: [PATCH] added Stack<>::Pop(T *,int count) --- inc/hgl/type/Stack.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inc/hgl/type/Stack.h b/inc/hgl/type/Stack.h index cd65142..8bfb682 100644 --- a/inc/hgl/type/Stack.h +++ b/inc/hgl/type/Stack.h @@ -74,6 +74,17 @@ namespace hgl return(true); } + virtual bool Pop(T *data,int count) + { + if(data_array.GetCount() *dlc=nullptr) ///<清除所有数据