BloombergLP::bdlc::FlatHashMap::operator[]

Return a modifiable reference to the mapped value for key.

Synopses

Declared in <bdlc_flathashmap.h>

Return a modifiable reference to the mapped value for key.

VALUE&
operator[](bslmf::MovableRef<KEY> key);
» more...

Return a modifiable reference to the mapped value for key.

VALUE&
operator[](KEY const& key);
» more...

Return a modifiable reference to the mapped value for key.

template<class LOOKUP_KEY>
VALUE&
operator[](LOOKUP_KEY&& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
         && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return Value

modifiable reference to the mapped value for key

Parameters

NameDescription
keykey whose mapped value is accessed (may be moved from)