CAtlArray Class
This class implements an array object.
template<
typename E,
class ETraits = CElementTraits< E >
>
class CAtlArray
Параметры
E
The type of data to be stored in the array.ETraits
The code used to copy or move elements.
Заметки
CAtlArray provides methods for creating and managing an array of elements of a user-defined type. Although similar to standard C arrays, the CAtlArray object can dynamically shrink and grow as necessary. The array index always starts at position 0, and the upper bound can be fixed, or allowed to expand as new elements are added.
For arrays with a small number of elements, the ATL class CSimpleArray can be used.
CAtlArray is closely related to MFC's CArray class and will work in an MFC project, albeit without serialization support.
For more information, see ATL Collection Classes.
Требования
Header: atlcoll.h
См. также
Основные понятия
MMXSwarm Sample: Demonstrates CImage and Visual C++ MMX Support
UpdatePV Sample: Implements an Updatable OLE DB Provider
Marquee Sample: Provides Performance Monitoring Data Through Scripting