at overloads

Synopses

Declared in <bslstl_map.h>

Return a modifiable reference to the mapped value for key.

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

Return a const reference to the mapped value for key.

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

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<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Return a const reference to the mapped value for key.

template<class LOOKUP_KEY>
add_lvalue_reference<VALUE const>::type
at(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Return Value

  • modifiable reference to the mapped value

  • const reference to the mapped value

Parameters

Name

Description

key

key whose mapped value is accessed

Created with MrDocs