From 71cf5912878fbfbb79c2a683ea59c8f2284a4f2a Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Thu, 15 Jun 2023 15:27:29 +0800 Subject: [PATCH] added a param in Enum of List/SortedSets --- inc/hgl/type/List.h | 4 ++-- inc/hgl/type/SortedSets.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/hgl/type/List.h b/inc/hgl/type/List.h index 2566129..3176557 100644 --- a/inc/hgl/type/List.h +++ b/inc/hgl/type/List.h @@ -86,13 +86,13 @@ namespace hgl virtual bool Begin(T &)const; ///<取第一个数据 virtual bool End(T &)const; ///<取最后一个数据 - virtual void Enum(void (*enum_func)(T &)) ///<枚举所有数据成员 + virtual void Enum(void (*enum_func)(int,T &)) ///<枚举所有数据成员 { T *obj=items; for(int i=0;i class SortedSets }//namespace hgl #include