commit 2025-08-19 21:31 edit __FastMoveObj() in ZCppMain/ZtCStringEx.H

This commit is contained in:
2025-08-19 22:21:02 +09:00
parent a130866f33
commit a9032f80a7

View File

@ -8276,14 +8276,20 @@ namespace ZNsMain
) */ ) */
namespace ZNsFunc namespace ZNsFunc
{ {
template<typename TTypCh, typename TAlloc, typename TAllocSize, typename TTypeString> template //////////////////////////////////////////////////////////////////
void __FastMoveObj( <
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1, typename TTypCh , typename TAlloc,
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2 typename TAllocSize, typename TTypeString
/*//////////*/ ) >
void __FastMoveObj ////////////////////////////////////////////////////////
(
ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1,
ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2
)
{ {
#ifdef _DEBUG_FAST_MOVE_OBJ_ #ifdef _DEBUG_FAST_MOVE_OBJ_
cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Start!"<<endl; cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Start!"<<endl;
@ -8295,36 +8301,12 @@ namespace ZNsMain
cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Close!"<<endl; cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Close!"<<endl;
#endif //_DEBUG_FAST_MOVE_OBJ_ #endif //_DEBUG_FAST_MOVE_OBJ_
}/* }/*
template<typename TTypCh, typename TAlloc, typename TAllocSize, typename TTypeString> template //////////////////////////////////////////////////////////////////
void __FastMoveObj( <
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1, typename TTypCh , typename TAlloc,
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2 typename TAllocSize, typename TTypeString
////////////// ) */ >
void __FastMoveObj //////////////////////////////////////////////////////*/
template<typename TTypCh, typename TAlloc, typename TAllocSize, typename TTypeString>
void __FastMoveObj(
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1,
const ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2
/*//////////*/ )
{
typedef ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString> CStringType;
#ifdef _DEBUG_FAST_MOVE_OBJ_
cout<<" ▶▶ __FastMoveObj(ZCString&, const ZCString&) Start!"<<endl;
#endif //_DEBUG_FAST_MOVE_OBJ_
AR_CString1.Fetch(const_cast<CStringType&>(AR_CString2));
#ifdef _DEBUG_FAST_MOVE_OBJ_
cout<<" ▶▶ __FastMoveObj(ZCString&, const ZCString&) Close!"<<endl;
#endif //_DEBUG_FAST_MOVE_OBJ_
}/*
template<typename TTypCh, typename TAlloc, typename TAllocSize, typename TTypeString>
void __FastMoveObj(
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1,
const ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2
////////////// ) */
}/* }/*
namespace ZNsFunc*/ namespace ZNsFunc*/