CList::CList

Tworzy pustą listę zamówione.

CList( 
   INT_PTR nBlockSize = 10  
);

Parametry

  • nBlockSize
    Rozdrobnienie alokacji pamięci dla rozszerzenia wykazu.

Uwagi

Pofragmentowaniu listy pamięci jest przydzielona w jednostkach nBlockSize wpisów.

Przykład

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

Wymagania

Nagłówek: afxtempl.h

Zobacz też

Informacje

Klasa CList

Diagram hierarchii