Template:cpp/container/value compare

is a function object that compares objects of type (key-value pairs) by comparing of the first components of the pairs.

Member functions
{{member | {{small|std::{{{1|}}}::value_compare::}}value_compare | 2= {{dcl begin}} {{dcl | protected: value_compare( Compare c ); }} {{dcl end}}

Initializes the internal instance of the comparator to {{tt|c}}.

Parameters
}}

{{member | {{small|std::{{{1|}}}::value_compare::}}operator | 2= {{dcl begin}} {{dcl | 1= bool operator( const value_type& lhs, const value_type& rhs ) const; }} {{dcl end}}

Compares {{tt|lhs.first}} and {{tt|rhs.first}} by calling the stored comparator.

Return value
.

}}