CAutoVectorPtr::Allocate

更新 : 2007 年 11 月

CAutoVectorPtr が指すオブジェクトの配列に必要なメモリを割り当てます。

bool Allocate(
   size_t nElements 
) throw( );

パラメータ

  • nElements
    配列の要素数。

戻り値

メモリの割り当てが成功した場合は true を返します。それ以外の場合は false を返します。

解説

デバッグ ビルドでは、CAutoVectorPtr::m_p メンバ変数が既存の値を指している場合、つまり NULL でない場合に、アサーション エラーが発生します。

必要条件

ヘッダー : atlbase.h

参照

参照

CAutoVectorPtr クラス

その他の技術情報

CAutoVectorPtr のメンバ