commit 2025-10-04 09:13 ZCLink& operator+, - : ZCppMain/ZtCObjList.H

This commit is contained in:
2025-10-04 09:13:53 +09:00
parent 90bfd26996
commit f24913673b
2 changed files with 17 additions and 1 deletions

View File

@ -974,6 +974,15 @@ namespace ZNsMain
}/*
ZCLink& operator+(TypeSize AL_Distance)*/
ZCLink& operator-(TypeSize AL_Distance)
{
if(AL_Distance>=0)
return *GetPrevPtr(AL_Distance);
else return *GetNextPtr(AL_Distance);
}/*
ZCLink& operator-(TypeSize AL_Distance)*/
const ZCLink& operator+(TypeSize AL_Distance) const
{
if(AL_Distance>=0)
@ -982,6 +991,13 @@ namespace ZNsMain
}/*
const ZCLink& operator+(TypeSize AL_Distance) const*/
const ZCLink& operator-(TypeSize AL_Distance) const
{
if(AL_Distance>=0)
return *GetPrevPtr(AL_Distance);
else return *GetNextPtr(AL_Distance);
}/*
const ZCLink& operator-(TypeSize AL_Distance) const*/
public:
};/*

View File

@ -256,7 +256,7 @@ namespace ZNsMain
MakeLinkCopy /*++++++++++++++++++++++++++++++++++++++++++++*/
(
AP_LinkOrgin->GetNextPtr() , AL_FarNum-ml_UseSize,
AP_LinkOrgin->GetNextPtr(), AL_FarNum-ml_UseSize,
RR(mp_NoUseTail->mp_NextLink), RR(APR_TailCopy)
);
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/