From 4543f13d9feaa7548f797d1f3760620062e76faf Mon Sep 17 00:00:00 2001 From: sauron Date: Sat, 4 Oct 2025 09:19:01 +0900 Subject: [PATCH] commit 2025-10-04 09:18 ZCLink& operator+, - in ZtCBaseList : ZCppMain/ZMainHead.H --- ZCppMain/ZMainHead.H | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index 7418f7f..87284ef 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -5366,6 +5366,19 @@ namespace ZNsMain operator const TypeData& () const{return mo_DataObjt;} const TypeData& GetData () const{return mo_DataObjt;} const TypeData& operator*() const{return mo_DataObjt;} + + + ZCLink& operator+(TypeSize AL_Distance) + { return *GetNextPrevPtr( AL_Distance); } + ZCLink& operator-(TypeSize AL_Distance) + { return *GetNextPrevPtr(-AL_Distance); } + + const ZCLink& operator+(TypeSize AL_Distance) const + { return *GetNextPrevPtr( AL_Distance); } + const ZCLink& operator-(TypeSize AL_Distance) const + { return *GetNextPrevPtr(-AL_Distance); } + + public: };/* class ZCLink*/