Skip to content

ABaseMap#

Base class for maps with AUI extensions.

Header:#include <AUI/Common/AMap.h>
CMake:aui_link(my_target PUBLIC aui::core)

Public Types#

contains_iterator#


struct ABaseMap::contains_iterator

Empty structure.

const_contains_iterator#


struct ABaseMap::const_contains_iterator

Empty structure.

Public Methods#

getOrInsert#


template<typename Factory >
ValueType& ABaseMap::getOrInsert(const KeyType& keyType, Factory&& factory)
Arguments
keyType
key;
factory
factory function that will return a new value. Called only if map does not contain value of specified key.
Returns
stored or new value.

If value of specified key exists, the existing value returned. Otherwise, factory function called.