본문 바로가기
VisualStudio.C++.C#/코딩팁,함수활용,단편

MFC Collection Class. CArray, CList, CMap, ...

by i.got.it 2016. 1. 4.


The easiest way to implement a type-safe collection that contains objects of any type is to use one of the MFC template-based classes. For examples of these classes, see the MFC sample COLLECT.

The following table lists the MFC template-based collection classes.

Collection Template Classes

Collection contents

Arrays

Lists

Maps

Collections of objects of any type

CArray

CList

CMap

Collections of pointers to objects of any type

CTypedPtrArray

CTypedPtrList

CTypedPtrMap

If your application already uses MFC nontemplate classes, you can continue to use them. However, for new collections, we recommend that you use the template-based classes. The following table lists the MFC collection classes that are not based on templates.

Nontemplate Collection Classes

Arrays

Lists

Maps

CObArray

CObList

CMapPtrToWord

CByteArray

CPtrList

CMapPtrToPtr

CDWordArray

CStringList

CMapStringToOb

CPtrArray

 

CMapStringToPtr

CStringArray

 

CMapStringToString

CWordArray

 

CMapWordToOb

CUIntArray

 

CMapWordToPtr


///531,





댓글



 

비트코인




암호화폐       외환/나스닥/골드         암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)         프랍 트레이더 온라인 지원가능. MT4,MT5