Template Function common::getChecked(std::unordered_map<KeyType, ValueType, Hash<KeyType>, Comparator<KeyType>, Allocator<std::pair<const KeyType, ValueType>>>&, const KeyType&)¶
Function Documentation¶
-
template<typename
KeyType
, typenameValueType
, template<typename> classHash
, template<typename> classComparator
, template<typename> classAllocator
>
inline ValueType &common
::
getChecked
(std::unordered_map<KeyType, ValueType, Hash<KeyType>, Comparator<KeyType>, Allocator<std::pair<const KeyType, ValueType>>> &map, const KeyType &key)¶ Returns a non-const reference to the value for the specified key in an std::unordered_map.
Fails hard if the keys does not exist.