|
multiset::operator=public member function
multiset<Key,Compare,Allocator>& operator= ( const multiset<Key,Compare,Allocator>& x ); Copy container content Assigns a copy of the elements in x as the new content for the container.The elements contained in the object before the call are dropped, and replaced by copies of those in multiset x, if any. After a call to this member function, both the multiset object and x will have the same size and compare equal to each other. Parameters
Return value*thisExample
Output:
ComplexityLinear on sizes (destruction, copy construction).See also
|