Export (0) Print
Expand All

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

Community Additions

ADD
Show:
© 2014 Microsoft