[#bsl-map-0a7-at-09] = xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::at :relfileprefix: ../../ :mrdocs: Return a reference providing non‐modifiable access to the mapped‐value associated with a key that is equivalent to the specified `key`, if such an entry exists; otherwise, throw a `std::out_of_range` exception. Note that this method may also throw a different kind of exception if the (user‐supplied) comparator throws. == Synopsis Declared in `<bslstl_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- add_lvalue_reference<VALUE const>::type at(xref:bsl/map-0a7/key_type.adoc[key_type] const& key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#