CHeapPtr::operator =

更新 : 2007 年 11 月

代入演算子です。

CHeapPtr< T, Allocator >& operator =(
   CHeapPtr< T, Allocator >& p 
) throw( );

パラメータ

  • p
    既存の CHeapPtr オブジェクト。

戻り値

更新された CHeapPtr オブジェクトへの参照を返します。

使用例

// Create a new CHeapPtr object
CHeapPtr <int> myHP;
// Allocate space for 10 integers on the heap
myHP.Allocate(10);
// Create a second heap pointer
// and assign it to the first pointer.
CHeapPtr <int> myHP2;
myHP2 = myHP;   

必要条件

ヘッダー : atlalloc.h

参照

参照

CHeapPtr クラス

その他の技術情報

CHeapPtr のメンバ