std::flat_multiset<Key,Compare,KeyContainer>::replace - cppreference.com (original) (raw)
| void replace( container_type&& cont ); | | (since C++23) | | --------------------------------------- | | ------------- |
Replaces the underlying container c. Equivalent to:c = std::move(cont);.
The elements of cont must be sorted with respect to compare. Otherwise, the behavior is undefined.
[edit] Parameters
| cont | - | a sorted container of type KeyContainer, the contents of which will be moved into *this |
|---|
[edit] Return value
(none)
[edit] Complexity
Equals to complexity of std::move applied to adapted container.
[edit] Example
[edit] See also
| | extracts the underlying container (public member function) [edit] | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |