Assignment operators
Synopses
Declared in <bslstl_map.h>
Assign to this object the value and comparator of the specified rhs object, propagate to this object the allocator of rhs if the ALLOCATOR type has trait propagate_on_container_copy_assignment, and return a reference providing modifiable access to this object. If an exception is thrown, *this is left in a valid but unspecified state. This method requires that the (template parameter) types KEY and VALUE both be copy‐assignable and copy‐insertable into this map (see {Requirements on KEY and VALUE}).
map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(map const& rhs);
Move‐assign the contents of the specified rhs map into this map.
map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(BloombergLP::bslmf::MovableRef<map> rhs) noexcept(/* see-below */);
Assign to this object the value resulting from first clearing this map and then inserting each value_type object in the specified values initializer list, ignoring those objects having a key equivalent to that which appears earlier in the list; return a reference providing modifiable access to this object. This method requires that the (template parameter) types KEY and VALUE both be copy‐insertable into this map (see {Requirements on KEY and VALUE}).
map<KEY, VALUE, COMPARATOR, ALLOCATOR>&
operator=(std::initializer_list<value_type> values);
Created with MrDocs