Return a const reference to the mapped value for key.
Synopsis
Declared in <bslstl_unorderedmap.h>
add_lvalue_reference<VALUE const>::type
at(key_type const& key) const;
Description
Return a reference providing non‐modifiable access to the mapped‐value associated with the specified key, if such an entry exists; otherwise throw a std::out_of_range exception. Note that this method is not exception‐neutral.
Return Value
const reference to the mapped value
Parameters
Name |
Description |
key |
key to look up |
Created with MrDocs