public member function
<unordered_set>
std::unordered_multiset::empty
bool empty() const noexcept;
Test whether container is empty
This function does not modify the content of the array in any way. To clear the content of an array object, member function unordered_multiset::clear exists.
Parameters
noneReturn Value
true if the container size is 0, false otherwise.Example
|
|
Output:
first is empty second is not empty
Complexity
Constant.Iterator validity
No changes.See also
- unordered_multiset::clear
- Clear content (public member function)
- unordered_multiset::size
- Return container size (public member function)