본문 바로가기
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 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5