Standard C++ Library Reference ISO/IEC (VERSION3)
set::set
set();
explicit set(const Pr& pred);
set(const Pr& pred, const Alloc& al);
set(const set& right);
template<class InIt>
set(InIt first, InIt last);
template<class InIt>
set(InIt first, InIt last,
const Pr& pred);
template<class InIt>
set(InIt first, InIt last,
const Pr& pred, const Alloc& al);
All constructors store an allocator object and initialize the controlled sequence. The allocator
object is the argument al, if present. For the copy constructor, it is
right.get_allocator(). Otherwise, it is Alloc().
All constructors also store a function object that can later be returned by calling key_comp().
The function object is the argument pred, if present. For the copy constructor, it is
right.key_comp()). Otherwise, it is Pr().
The first three constructors specify an empty initial controlled sequence. The fourth constructor
specifies a copy of the sequence controlled by right. The last three constructors specify the
sequence of element values [first, last).
set::size
size_type size() const;
The member function returns the length of the controlled sequence.
set::size_type
typedef T2 size_type;
The unsigned integer type describes an object that can represent the length of any controlled
sequence. It is described here as a synonym for the implementation-defined type T2.
set::swap
void swap(set& right);
The member function swaps the controlled sequences between *this and right. If
get_allocator() == right.get_allocator(), it does so in constant time, it