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

hash_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.
hash_map::value_compare
class value_compare
: public binary_function<value_type, value_type,
bool> {
public:
bool operator()(const value_type& left,
const value_type& right) const
{return (comp(left.first, right.first)); }
protected:
value_compare(key_compare pr)
: comp(pr) {}
key_compare comp;
};
The type describes a function object that can compare the sort keys in two elements to
determine their relative order in the controlled sequence. The function object stores an object
comp of type key_type. The member function operator() uses this object to compare the
sort-key components of two element.
hash_map::value_type
typedef pair<const Key, Ty> value_type;
The type describes an element of the controlled sequence.
hash_multimap
allocator_type · begin · clear · const_iterator · const_pointer
· const_reference · const_reverse_iterator · count ·
difference_type · empty · end · equal_range · erase · find ·
get_allocator · insert · iterator · key_comp · key_compare ·
key_type · lower_bound · mapped_type · max_size · hash_multimap
· rbegin · reference · rend · reverse_iterator · size ·
size_type · swap · upper_bound · value_comp · value_compare ·