Share via


CAtlMap::GetNextAssoc

Gets the next element for iterating.

void GetNextAssoc( 
   POSITION& pos, 
   KOUTARGTYPE key, 
   VOUTARGTYPE value  
) const;

Parameters

  • pos
    The position counter, returned by a previous call to CAtlMap::GetNextAssoc or CAtlMap::GetStartPosition.

  • key
    Template parameter specifying the type of the map's key.

  • value
    Template parameter specifying the type of the map's value.

Remarks

The pos position counter is updated after each call. If the retrieved element is the last in the map, pos is set to NULL.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class

CAtlMap::GetNext

CAtlMap::GetNextKey

CAtlMap::GetNextValue

CAtlMap::GetStartPosition