CList::CList

更新 : 2007 年 11 月

空の順序付きリストを構築します。

CList(
   INT_PTR nBlockSize = 10 
);

パラメータ

  • nBlockSize
    リストを拡張するときに割り当てるメモリの単位を指定します。

解説

リストが拡張されるときに、nBlockSize のエントリで指定された単位でメモリが割り当てられます。

使用例

// This code defines myList as a list of strings
// such that memory gets allocated in chunks of
// 16 strings.
CList<CString,CString&> myList(16);

// This code defines myList2 as a list of ints
// such that memory gets allocated in chunks of
// 128 ints.
CList<int,int> myList2(128);      

必要条件

ヘッダー : afxtempl.h

参照

参照

CList クラス

階層図

その他の技術情報

CList のメンバ