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


CSimpleMap::Add

Adds a key and associated value to the map array.

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

Параметры

  • 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.

Требования

Header: atlsimpcoll.h

См. также

Основные понятия

CSimpleMap Class

CSimpleMap Members