template <class T, class CollType, class ItemType, class CopyItem, class EnumType>
class ICollectionOnSTLImpl : public T
Parameters
T
A COM collection interface.
CollType
An STL container class.
ItemType
The type of item exposed by the container interface.
CopyItem
EnumType
A CComEnumOnSTL-compatible enumerator class.
Remarks
This class provides the implementation for three methods of a collection interface: get_Count, get_Item, and get__NewEnum.
To use this class:
Note If the collection interface is a dual interface, derive your class from IDispatchImpl, passing the ICollectionOnSTLImpl specialization as the first template parameter if you want ATL to provide the implementation of the IDispatch methods.
For more information and examples, see ATL Collections and Enumerators.
#include <atlcom.h>