Standard C++ Library Class Reference
Returns a const_iterator pointing to the last element stored in the multiset, i.e., the off-the-end
value.
reverse_iterator rbegin();
Returns a reverse_iterator pointing to the first element stored in the multiset. "First" is defined
by the multiset's comparison operator, Compare.
const_reverse_iterator rbegin();
Returns a const_reverse_iterator pointing to the first element stored in the multiset.
reverse_iterator rend();
Returns a reverse_iterator pointing to the last element stored in the multiset, i.e., the
off-the-end value.
const_reverse_iterator rend();
Returns a const_reverse_iterator pointing to the last element stored in the multiset, i.e., the
off-the-end value.
Member Functions
void
clear ();
Erases all elements from the self.
size_type
count (const key_type& x) const;
Returns the number of elements in the multiset with the key value x.
bool
empty () const;
Returns true if the multiset is empty, false otherwise.
pair<iterator,iterator>
equal_range (const key_type& x)const;
Returns the pair (lower_bound(x), upper_bound(x)).
size_type
erase (const key_type& x);
Deletes all elements with the key value x from the multiset, if any exist. Returns the number of
deleted elements.
iterator
erase (iterator position);
Deletes the multiset element pointed to by the iterator position. Returns an iterator pointing to
the element following the deleted element, or end() if the deleted item was the last one in this
list.
iterator