common::FindKey

Map lookup helper.

Synopsis

Declared in <common/settings.h>

template<
    typename Map,
    typename Key>
decltype(&map.at(key))
FindKey(
    Map&& map,
    Key&& key);

Return Value

Pointer to the mapped value, or nullptr if the key is absent.

Parameters

NameDescription
mapThe map to search.
keyThe key to look up.