Поделиться через


CAtlMap::SetAt

Call this method to insert an element pair into the map.

POSITION SetAt( 
   KINARGTYPE key, 
   VINARGTYPE value  
);

Parameters

  • key
    The key value to add to the CAtlMap object.

  • value
    The value to add to the CAtlMap object.

Return Value

Returns the position of the key/value element pair in the CAtlMap object.

Remarks

SetAt replaces an existing element if a matching key is found. If the key is not found, a new key/value pair is created.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class

CAtlMap::SetValueAt