| Inserts a range into the | ||
void erase(iterator pos) | Associative Container | Erases the element pointed to by |
size_type erase(const key_type& k) | Associative Container | Erases the element whose key is |
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) | Associative Container | Finds an element whose key is |
const_iterator find(const key_type& k) const | Associative Container | Finds an element whose key is |
size_type count(const key_type& k) | Unique Associative Container | Counts the number of elements whose key is |
iterator lower_bound(const key_type& k) | Sorted Associative Container | Finds the first element whose key is not less than |
const_iterator lower_bound(const key_type& k) const | Sorted Associative Container | Finds the first element whose key is not less than |
iterator upper_bound(const key_type& k) | Sorted Associative Container | Finds the first element whose key greater than |
const_iterator upper_bound(const key_type& k) const | Sorted Associative Container | Finds the first element whose key greater than |
pair<iterator, iterator> equal_range(const key_type& k) | Sorted Associative Container | Finds a range containing all elements whose key is |
pair<const_iterator, const_iterator> equal_range(const key_type& k) const | Sorted Associative Container | Finds a range containing all elements whose key is |
data_type& operator[](const key_type& k) [3] | See below. | |
bool operator==(const map&, const map&) | Forward Container | Tests two maps for equality. This is a global function, not a member function. |
bool operator<(const map&, const map&) | Forward Container | Lexicographical comparison. This is a global function, not a member function. |
These members are not defined in the Unique Sorted Associative Container and Pair Associative Container requirements, but are unique to
Вы читаете Standard Template Library Programmer's Guide
