Compartir a través de


CAtlMap::GetAt

Call this method to return the element at a specified position in the map.

void GetAt( 
   POSITION pos, 
   KOUTARGTYPE key, 
   VOUTARGTYPE value  
) const; 
CPair* GetAt( 
   POSITION& pos  
) throw( );

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.

Return Value

Returns a pointer to the current pair of key/value elements stored in the map.

Remarks

In debug builds, an assertion error will occur if pos is equal to NULL.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class

CAtlMap::SetAt

CAtlMap::GetKeyAt

CAtlMap::GetValueAt

CAtlMap::CPair Class