Standard C++ Library Reference ISO/IEC (VERSION3)

The first member function removes the element of the controlled sequence pointed to by
where. The second member function removes the elements in the range [first, last).
Both return an iterator that designates the first element remaining beyond any elements
removed, or end() if no such element exists.
The third member removes the elements with sort keys in the range
[lower_bound(keyval), upper_bound(keyval)). It returns the number of
elements it removes.
The member functions never throw an exception.
set::find
iterator find(const Key& keyval);
const_iterator find(const Key& keyval) const;
The member function returns an iterator that designates the element in the controlled sequence
whose sort key has equivalent ordering to keyval. If no such element exists, the function
returns end().
set::get_allocator
Alloc get_allocator() const;
The member function returns the stored allocator object.
set::insert
pair<iterator, bool> insert(const value_type& val);
iterator insert(iterator where, const value_type& val);
template<class InIt>
void insert(InIt first, InIt last);
The first member function determines whether an element X exists in the sequence whose key
has equivalent ordering to that of val. If not, it creates such an element X and initializes it with
val. The function then determines the iterator where that designates X. If an insertion
occurred, the function returns pair(where, true). Otherwise, it returns pair(where,
false).
The second member function returns insert(val).first, using where as a starting place
within the controlled sequence to search for the insertion point. (Insertion can occur in
amortized constant time, instead of logarithmic time, if the insertion point immediately precedes
or follows where.) The third member function inserts the sequence of element values, for each
where in the range [first, last), by calling insert(*where).
If an exception is thrown during the insertion of a single element, the container is left unaltered