std::multimap<Key,T,Compare,Allocator>::value_compare - cppreference.com
From cppreference.com
std::multimap::value_compare is a function object that compares objects of type std::multimap::value_type (key-value pairs) by comparing of the first components of the pairs.
Member types
| 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 inheriting |
(until C++11) |
Protected member objects
| the stored comparator (protected member object) |
Member functions
std::multimap<Key,T,Compare,Alloc>::value_compare::value_compare
|
|
||
Initializes the internal instance of the comparator to c.
Parameters
std::multimap<Key,T,Compare,Alloc>::value_compare::operator()
|
|
||
Compares lhs.first and rhs.first by calling the stored comparator.
Parameters
| lhs, rhs | - | values to compare |
Return value
comp(lhs.first, rhs.first)
Exceptions
May throw implementation-defined exceptions.