From fbc3bf00934f3545ade853a63b8c69d98439298c Mon Sep 17 00:00:00 2001 From: sauron Date: Wed, 20 Aug 2025 11:57:40 +0900 Subject: [PATCH] commit 2025-08-20 11:57 __FastMoveObj => ZftMoveFast --- ZCppMain/ZMainHead.H | 16 ++++++++-------- ZCppMain/ZtCStringEx.H | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index e4dfae4..d3d74b5 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -1440,14 +1440,14 @@ namespace ZNsMain ■ 특수한 목적으로 쓰이는 전역 템플릿 함수는 여기에 놓는다. - ■ __FastMoveObj<>(Type1& AR_Type1, Type2& AR_Type2) + ■ ZftMoveFast<>(Type1& AR_Type1, Type2& AR_Type2) 차기 표준에서 구현하는 RValue Reference 를 흉내낸 함수다. Move 생성자와 Move 대입연산 중 대입연산만을 흉내내는 것이며, 일반적으로 이 함수 호출후에 AR_Type2 의 크기는 0 이 되거나 줄어들 것이다. 해당 object 에 Move 대입연산이 필요하면 해당 object 를 인수로 갖는 - __FastMoveObj() 함수 템플릿을 전문화하면 된다. + ZftMoveFast() 함수 템플릿을 전문화하면 된다. ■ 어느 함수 func()가 인수로 전달되는 object 의 초기/종료 멤버함수를 요구하는 경우, 그때마다 해당 object class 를 선언할 때, 특정한 이름의 초기/종료 멤버 @@ -1461,20 +1461,20 @@ namespace ZNsMain ///////////////////////////////////////////////////////////////////////////*/ template - void __FastMoveObj(Type1& AR_Type1, Type2& AR_Type2) + void ZftMoveFast(Type1& AR_Type1, Type2& AR_Type2) { #ifdef _DEBUG_FAST_MOVE_OBJ_ - cout<<" ※※ __FastMoveObj Start : Type1="< is called."< +■ 함수 템플릿의 템플릿 인수가 템플릿인 경우에는 어떻게 전문화하는지, ZtCStringEx.H 의 ZNsMain::ZftMoveFast() 의 ZtCStringBase<> 템플릿 전문화에 그 예가 있다. -- 2009-09-06 07:26:00 diff --git a/ZCppMain/ZtCStringEx.H b/ZCppMain/ZtCStringEx.H index b6eca57..8a2b30a 100644 --- a/ZCppMain/ZtCStringEx.H +++ b/ZCppMain/ZtCStringEx.H @@ -8285,20 +8285,20 @@ namespace ZNsMain typename TTypCh , typename TAlloc, typename TAllocSize, typename TTypeString > - void __FastMoveObj //////////////////////////////////////////////////////// + void ZftMoveFast ////////////////////////////////////////////////////////// ( ZtCStringBase& AR_CString1, ZtCStringBase& AR_CString2 ) { #ifdef _DEBUG_FAST_MOVE_OBJ_ - cout<<" ▶▶ __FastMoveObj(ZCString&, ZCString&) Start!"< - void __FastMoveObj //////////////////////////////////////////////////////*/ + void ZftMoveFast ////////////////////////////////////////////////////////*/ }/* namespace ZNsFunc*/