From c3855586dab0de5cb7b6cc3fbaebe308ac41f9ee Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 28 Jun 2023 18:33:34 +0800 Subject: [PATCH] renamed to First/Last from Begin/End in List<> --- inc/hgl/type/List.cpp | 4 ++-- inc/hgl/type/List.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/hgl/type/List.cpp b/inc/hgl/type/List.cpp index afaeed4..346d987 100644 --- a/inc/hgl/type/List.cpp +++ b/inc/hgl/type/List.cpp @@ -24,7 +24,7 @@ namespace hgl } template - bool List::Begin(T &ti)const + bool List::First(T &ti)const { if(!items||count<=0) return(false); @@ -34,7 +34,7 @@ namespace hgl } template - bool List::End(T &ti)const + bool List::Last(T &ti)const { if(!items||count<=0) return(false); diff --git a/inc/hgl/type/List.h b/inc/hgl/type/List.h index 3176557..8927681 100644 --- a/inc/hgl/type/List.h +++ b/inc/hgl/type/List.h @@ -83,8 +83,8 @@ namespace hgl void Set(int,const T &); ///<设置指定索引处的数据 bool Rand(T &)const; ///<随机取得一个数据 - virtual bool Begin(T &)const; ///<取第一个数据 - virtual bool End(T &)const; ///<取最后一个数据 + virtual bool First(T &)const; ///<取第一个数据 + virtual bool Last(T &)const; ///<取最后一个数据 virtual void Enum(void (*enum_func)(int,T &)) ///<枚举所有数据成员 {