commit 2025-08-19 21:31 edit __FastMoveObj() in ZCppMain/ZtCStringEx.H
This commit is contained in:
@ -8276,14 +8276,20 @@ namespace ZNsMain
|
||||
) */
|
||||
|
||||
|
||||
|
||||
namespace ZNsFunc
|
||||
{
|
||||
|
||||
template<typename TTypCh, typename TAlloc, typename TAllocSize, typename TTypeString>
|
||||
void __FastMoveObj(
|
||||
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString1,
|
||||
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2
|
||||
/*//////////*/ )
|
||||
template //////////////////////////////////////////////////////////////////
|
||||
<
|
||||
typename TTypCh , typename TAlloc,
|
||||
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_
|
||||
cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Start!"<<endl;
|
||||
@ -8295,36 +8301,12 @@ namespace ZNsMain
|
||||
cout<<" ▶▶ __FastMoveObj(ZCString&, 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,
|
||||
ZNsMain::ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>& AR_CString2
|
||||
////////////// ) */
|
||||
|
||||
|
||||
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
|
||||
////////////// ) */
|
||||
template //////////////////////////////////////////////////////////////////
|
||||
<
|
||||
typename TTypCh , typename TAlloc,
|
||||
typename TAllocSize, typename TTypeString
|
||||
>
|
||||
void __FastMoveObj //////////////////////////////////////////////////////*/
|
||||
|
||||
}/*
|
||||
namespace ZNsFunc*/
|
||||
|
Reference in New Issue
Block a user