bsl::map::operator=

Assignment operators

Synopses

Declared in <bslstl_map.h>

Assign to this map the value and comparator of rhs.

map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(map const& rhs);
» more...

Move-assign the contents of rhs into this map.

map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(BloombergLP::bslmf::MovableRef<map> rhs) noexcept(/* see-below */);
» more...

Assign to this map the unique-key elements of values.

map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(std::initializer_list<value_type> values);
» more...

Return Value

reference providing modifiable access to this map

Parameters

NameDescription
rhsmap to copy-assign from
valuesinitializer list of elements to assign