CList::CList

Constructs an empty ordered list.

CList(
   INT_PTR nBlockSize = 10 
);

Parameters

  • nBlockSize
    The memory-allocation granularity for extending the list.

Remarks

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

See Also

Reference

CList Class

Hierarchy Chart

Other Resources

CList Members