bsl::unordered_map::at

Return a modifiable reference to the mapped value for key.

Synopsis

Declared in <bslstl_unorderedmap.h>

add_lvalue_reference<VALUE>::type
at(key_type const& key);

Description

Return a reference providing modifiable access to the mapped-value associated with the specified key, if such an entry exists; otherwise throw std::out_of_range exception. Note that this method is not exception-neutral.

Return Value

modifiable reference to the mapped value

Parameters

NameDescription
keykey to look up