CSimpleMap::Add
The document is archived and information here might be outdated

CSimpleMap::Add 

Adds a key and associated value to the map array.


BOOL Add(
   const TKey& key,
   const TVal& val 
);

Parameters

key

The key.

val

The associated value.

Returns TRUE if the key and value were successfully added, FALSE otherwise.

Each key and value pair added causes the mapping array memory to be freed and reallocated, in order to ensure the data for each is always stored contiguously. That is, the second key element always directly follows the first key element in memory and so on.

Show:
© 2016 Microsoft