L4Re Operating System Framework – Interface and Usage Documentation
Loading...
Searching...
No Matches
cxx::Pair_first_compare< Cmp, Typ > Class Template Reference

Comparison functor for Pair. More...

#include <pair>

+ Collaboration diagram for cxx::Pair_first_compare< Cmp, Typ >:

Public Member Functions

 Pair_first_compare (Cmp const &cmp=Cmp())
 Construction.
 
bool operator() (Typ const &l, Typ const &r) const
 Do the comaprison based on the first value.
 

Detailed Description

template<typename Cmp, typename Typ>
class cxx::Pair_first_compare< Cmp, Typ >

Comparison functor for Pair.

Parameters
CmpComparison functor for the first value of the pair.
TypThe pair type.

This functor can be used to compare Pair values with respect to the first value.

Definition at line 75 of file pair.

Constructor & Destructor Documentation

◆ Pair_first_compare()

template<typename Cmp , typename Typ >
cxx::Pair_first_compare< Cmp, Typ >::Pair_first_compare ( Cmp const &  cmp = Cmp())
inline

Construction.

Parameters
cmpThe comparison functor used for the first value.

Definition at line 85 of file pair.

Member Function Documentation

◆ operator()()

template<typename Cmp , typename Typ >
bool cxx::Pair_first_compare< Cmp, Typ >::operator() ( Typ const &  l,
Typ const &  r 
) const
inline

Do the comaprison based on the first value.

Parameters
lThe lefthand value.
rThe righthand value.

Definition at line 92 of file pair.


The documentation for this class was generated from the following file: