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

map::size
size_type size() const;
The member function returns the length of the controlled sequence.
map::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.
map::swap
void swap(map& 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
throws an exception only as a result of copying the stored function object of type Pr, and it
invalidates no references, pointers, or iterators that designate elements in the two controlled
sequences. Otherwise, it performs a number of element assignments and constructor calls
proportional to the number of elements in the two controlled sequences.
map::upper_bound
iterator upper_bound(const Key& keyval);
const_iterator upper_bound(const Key& keyval) const;
The member function returns an iterator that designates the earliest element X in the controlled
sequence for which key_comp()(keyval, X.first) is true.
If no such element exists, the function returns end().
map::value_comp
value_compare value_comp() const;
The member function returns a function object that determines the order of elements in the
controlled sequence.
map::value_compare
class value_compare
: public binary_function<value_type, value_type,
bool> {
public: