None.
Member |
Where defined |
Description |
value_type |
Container |
The type of object, T , stored in the set. |
key_type |
Associative Container |
The key type associated with value_type . |
key_compare |
Sorted Associative |
Container Function object that compares two keys for ordering. |
value_compare |
Sorted Associative |
Container Function object that compares two values for ordering. |
pointer |
Container |
Pointer to T . |
reference |
Container |
Reference to T |
const_reference |
Container |
Const reference to T |
size_type |
Container |
An unsigned integral type. |
difference_type |
Container |
A signed integral type. |
iterator |
Container |
Iterator used to iterate through a set . |
const_iterator |
Container |
Const iterator used to iterate through a set . ( Iterator and const_iterator are the same type.) |
reverse_iterator |
Reversible Container |
Iterator used to iterate backwards through a set . |
const_reverse_iterator |
Reversible Container |
Const iterator used to iterate backwards through a set . ( Reverse_iterator and const_reverse_iterator are the same type.) |
iterator begin() const |
Container |
Returns an iterator pointing to the beginning of the set . |
iterator end() const |
Container |
Returns an iterator pointing to the end of the set . |
reverse_iterator rbegin() const |
Reversible Container |
Returns a reverse_iterator pointing to the beginning of the reversed set. |
reverse_iterator rend() const |
Reversible Container |
Returns a reverse_iterator pointing to the end of the reversed set. |
size_type size() const |
Container |
Returns the size of the set . |
size_type max_size() const |
Container |
Returns the largest possible size of the set . |
bool empty() const |
Container |
true if the set 's size is 0 . |
key_compare key_comp() const |
Sorted Associative Container |
Returns the key_compare object used by the set . |
value_compare value_comp() const |
Sorted Associative Container |
Returns the value_compare object used by the set . |
set() |
Container |
Creates an empty set . |
set(const key_compare& comp) |
Sorted Associative Container |
Creates an empty set , using comp as the key_compare object. |
template set(InputIterator f, InputIterator l) [1] |
Unique Sorted Associative Container |
Creates a set with a copy of a range. |
template set(InputIterator f, InputIterator l, const key_compare& comp) [1] |
Unique Sorted Associative Container |
Creates a set with a copy of a range, using comp as the key_compare object. |
set(const set&) |
Container |
The copy constructor. |
set& operator=(const set&) |
Container |
The assignment operator |
void swap(set&) |
Container |
Swaps the contents of two sets. |
pair insert(const value_type& x) |
Unique Associative Container |
Inserts x into the set . |
iterator insert(iterator pos, const value_type& x) |
Unique Sorted Associative Container |
Inserts x into the set , using pos as a hint to where it will be inserted. |
template void insert(InputIterator, InputIterator) [1] |
Unique Sorted Associative Container |
Inserts a range into the set . |
void erase(iterator pos) |
Associative Container |
Erases the element pointed to by pos . |
size_type erase(const key_type& k) |
Associative Container |
Erases the element whose key is k . |
void erase(iterator first, iterator last) |
Associative Container |
Erases all elements in a range. |
void clear() |
Associative Container |
Erases all of the elements. |
iterator find(const key_type& k) const |
Associative Container |
Finds an element whose key is k . |
size_type count(const key_type& k) const |
Unique Associative Container |
Counts the number of elements whose key is k . |
iterator lower_bound(const key_type& k) const |
Sorted Associative Container |
Finds the first element whose key is not less than k . |
iterator upper_bound(const key_type& k) const |
Sorted Associative Container |
Finds the first element whose key greater than k . |
pair equal_range(const key_type& k) const |
Sorted Associative Container |
Finds a range containing all elements whose key is k . |
bool operator==(const set&, const set&) |
Forward Container |
Tests two sets for equality. This is a global function, not a member function. |
bool operator<(const set&, const set&) |
Forward Container |
Lexicographical comparison. This is a global function, not a member function. |
Associative Container, Sorted Associative Container, Simple Associative Container, Unique Sorted Associative Container, map , multiset , multimap , hash_set , hash_map , hash_multiset , hash_multimap