std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::value_compare
From cppreference.com
 
 
 < cpp | container | flat multimap 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Containers library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
 Tables
class value_compare;
 
 (since C++23) 
std::flat_multimap::value_compare is a function object that compares objects of type std::flat_multimap::const_reference (a pair of references to the stored key/value) by comparing the first components (i.e. keys) of the passed pairs.
Contents
[edit] Member objects
 Member name
 Definition
comp (private)
 the comparison function object of type std::flat_multimap::key_compare (exposition-only member object*)
[edit] Member functions
(constructor)
(private)
value_compare object (public member function)
operator()
value_type (public member function)
std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::value_compare::value_compare
private:
value_compare( key_compare c );
 
 (exposition only*) 
value_compare( key_compare c );
Initializes the underlying instance of the comparator comp to c.
Parameters
 c
 -
 a comparator to assign
std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::value_compare::operator()
bool operator()( const const_reference& lhs, const const_reference& rhs ) const;
 
 
Compares lhs.first and rhs.first by calling the stored comparator comp.
Parameters
 lhs, rhs
 -
 values to compare
Return value
comp(lhs.first, rhs.first)
[edit] Exceptions
May throw implementation-defined exceptions.