(C++17) | ||||
Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(C++26) | ||||
(C++11) | ||||
Associative | ||||
Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Adaptors | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
Views | ||||
(C++20) | ||||
(C++23) | ||||
Tables | ||||
Iterator invalidation | ||||
Member function table | ||||
Non-member function table |
Member functions | |||||||
Non-member functions | |||||||
| |||||||
Deduction guides(C++17) |
class value_compare; | ||
std::multimap::value_compare
is a function object that compares objects of typestd::multimap::value_type
(key-value pairs) by comparing of the first components of the pairs.
Contents |
Type | Definition |
result_type (deprecated in C++17)(removed in C++20) | bool |
first_argument_type (deprecated in C++17)(removed in C++20) | value_type |
second_argument_type (deprecated in C++17)(removed in C++20) | value_type |
These member types are obtained via publicly inheritingstd::binary_function<value_type, value_type,bool>. | (until C++11) |
Compare comp | the stored comparator (protected member object) |
(constructor) | constructs a newvalue_compare object(protected member function)[edit] |
operator() | compares two values of typevalue_type (public member function)[edit] |
protected: value_compare( Compare c); | ||
Initializes the internal instance of the comparator toc.
c | - | comparator to assign |
bool operator()(const value_type& lhs,const value_type& rhs)const; | ||
Compareslhs.first andrhs.first by calling the stored comparator.
lhs, rhs | - | values to compare |
comp(lhs.first, rhs.first)
May throw implementation-defined exceptions.