Karma Engine
|
Karma's std::map wrapper. More...
#include <KarmaTypes.h>
Public Types | |
typedef std::map< KeyType, ValueType > | AMap |
typedef AMap::iterator | AnIterator |
Public Member Functions | |
ValueType & | FindOrAdd (const KeyType &Key) |
ValueType * | Find (const KeyType &Key) |
Protected Attributes | |
AMap | m_KeyValuePair |
Karma's std::map wrapper.
|
inline |
Find the value associated with a specified key.
Key | The key to search for. |
|
inline |
Find the value associated with a specified key, or if none exists, adds a value using the default constructor.
Algorithm courtsey: https://stackoverflow.com/a/1409465
Key | The key to search for. |