Subscript operators
Synopses
Declared in <bslstl_unorderedmap.h>
Return a modifiable reference to the mapped value for movable key.
add_lvalue_reference<VALUE>::type
operator[](BloombergLP::bslmf::MovableRef<key_type> key);
Return a modifiable reference to the mapped value for key.
add_lvalue_reference<VALUE>::type
operator[](key_type const& key);
Return a modifiable reference to the mapped value for an equivalent key.
template<class LOOKUP_KEY>
add_lvalue_reference<VALUE>::type
operator[](LOOKUP_KEY&& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
&& BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
Return Value
modifiable reference to the mapped value
Parameters
Name |
Description |
key |
key to look up |
Created with MrDocs