bsl::unordered_map::at

at overloads

Synopses

Declared in <bslstl_unorderedmap.h>

Return a modifiable reference to the mapped value for key.

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

Return a const reference to the mapped value for key.

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

Return a modifiable reference to the mapped value for key.

template<class LOOKUP_KEY>
add_lvalue_reference<VALUE>::type
at(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
        && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return a const reference to the mapped value for an equivalent key.

template<class LOOKUP_KEY>
add_lvalue_reference<VALUE const>::type
at(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
        && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return Value

  • modifiable reference to the mapped value
  • const reference to the mapped value

Parameters

NameDescription
keykey to look up