다음을 통해 공유


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

요구 사항

헤더: afxtempl.h

참고 항목

참조

CList 클래스

계층 구조 차트