共用方式為


CList::CList

建構空白的排序清單。

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);      

需求

Header: afxtempl.h

請參閱

參考

CList 類別

階層架構圖