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选件类

层次结构图