Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CList::CList

 

Constructs an empty ordered list.


      CList(
   INT_PTR nBlockSize = 10 
);

nBlockSize

The memory-allocation granularity for extending the list.

As the list grows, memory is allocated in units of nBlockSize entries.

Example

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

Requirements

Header: afxtempl.h

Show: