collections.txt
来自「MFC集合类使用说明,简单明了,通俗易懂」· 文本 代码 · 共 56 行
TXT
56 行
The Short and Dirty on Template Collections
===============================================================================
A Word From Microsoft:
The nontemplate collection classes have been provided by MFC beginning with MFC
version 1.0. If your code already uses these classes, you can continue to use
them. If you write new type-safe collection classes for your own data types,
consider using the newer template-based classes.
===============================================================================
Not referenced in this paper
Arrays
CArray CByteArray
CTypedPtrArray CDWordArray
CObArray CStringArray
CPtrArray CUintArray
CWordArray
Lists
CList CStringList
CTypedPtrList
CObList
CPtrList
Maps
CMap CMapWordToOb
CTypedPtrMap CMapStringToOb
CMapWordToPtr CMapStringToString
CMapPtrToWord
CMapPtrToPtr
CMapStringToPtr
===============================================================================
Collection contents Arrays Lists Maps
---------------------------- --------------- --------------- --------------
Collections of OBJECTS
of any type CArray CList CMap
Collections of POINTERS CTypedPtrArray CTypedPtrList CTypedPtrMap
to objects of any type
Must be one of the non-
template pointer collect-
ions predefined by MFC,
such as CPtrList or CPtrArray
===============================================================================
CArray
A non-unique array of simple types, objects or pointers.
CList
An ordered list of nonunique objects.
CMap
An ordered list of unique objects.
CTypedPtrArray
A type-safe 搘rapper
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?