Subscript operators
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);
» more...
Return a modifiable reference to the mapped value for key.
add_lvalue_reference<VALUE>::type
operator[](key_type const& key);
» more...
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;
» more...
modifiable reference to the mapped value
| Name | Description |
|---|---|
| key | key to look up |