[#bsl-map-0a7-at-0a]
= xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::at
:relfileprefix: ../../
:mrdocs:

`at` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;map&period;h&gt;`

Return a modifiable reference to the mapped value for `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
add&lowbar;lvalue&lowbar;reference&lt;VALUE&gt;::type
xref:bsl/map-0a7/at-0ce.adoc[at](xref:bsl/map-0a7/key_type.adoc[key&lowbar;type] const& key);
----

[.small]#xref:bsl/map-0a7/at-0ce.adoc[_» more&period;&period;&period;_]#

Return a const reference to the mapped value for `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
add&lowbar;lvalue&lowbar;reference&lt;VALUE const&gt;::type
xref:bsl/map-0a7/at-09.adoc[at](xref:bsl/map-0a7/key_type.adoc[key&lowbar;type] const& key) const;
----

[.small]#xref:bsl/map-0a7/at-09.adoc[_» more&period;&period;&period;_]#

Return a modifiable reference to the mapped value for `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
add&lowbar;lvalue&lowbar;reference&lt;VALUE&gt;::type
xref:bsl/map-0a7/at-0ca.adoc[at](LOOKUP&lowbar;KEY const& key)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;COMPARATOR,
                                                   LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

[.small]#xref:bsl/map-0a7/at-0ca.adoc[_» more&period;&period;&period;_]#

Return a const reference to the mapped value for `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
add&lowbar;lvalue&lowbar;reference&lt;VALUE const&gt;::type
xref:bsl/map-0a7/at-02.adoc[at](LOOKUP&lowbar;KEY const& key) const
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;COMPARATOR,
                                                   LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

[.small]#xref:bsl/map-0a7/at-02.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable reference to the mapped value
* const reference to the mapped value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key whose mapped value is accessed
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
