空の順序付きリストを構築します。
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