Freigeben über


CList::CList

Erstellt eine leere sortierte Liste.

CList( 
   INT_PTR nBlockSize = 10  
);

Parameter

  • nBlockSize
    Die Speicherbelegungsgranularität zum Erweitern der Liste.

Hinweise

Während die Liste zunimmt, wird Arbeitsspeicher in Einheiten nBlockSize Einträgen zugeordnet.

Beispiel

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

Anforderungen

Header: afxtempl.h

Siehe auch

Referenz

CList-Klasse

Hierarchiediagramm