Partager via


CSimpleMap::SetAtIndex

Sets the key and value at a specified index.

BOOL SetAtIndex( 
   int nIndex, 
   const TKey& key, 
   const TVal& val  
);

Parameters

  • nIndex
    The index, referencing the key and value pairing to change.

  • key
    The new key.

  • val
    The new value.

Return Value

Returns TRUE if successful, FALSE if the index was not valid.

Remarks

Updates both the key and value pointed to by nIndex.

Requirements

Header: atlsimpcoll.h

See Also

Reference

CSimpleMap Class

CSimpleMap::SetAt