CoMMA 1.3.2
A geometric agglomerator for unstructured meshes
Loading...
Searching...
No Matches
comma::CustomPairLessFunctor< PairT > Struct Template Reference

Functor for pairs implementing a custom 'less than'. It relies on the 'less than' operator for the second elements and 'greater than' for the first ones. More...

#include <Util.h>

Public Member Functions

bool operator() (const PairT &left, const PairT &right) const
 Functor for pairs implementing a custom 'less than'. It relies on the 'less than' operator for the second elements and 'greater than' for the first ones. More...
 

Detailed Description

template<class PairT>
struct comma::CustomPairLessFunctor< PairT >

Functor for pairs implementing a custom 'less than'. It relies on the 'less than' operator for the second elements and 'greater than' for the first ones.

Template Parameters
PairTType for pairs

Member Function Documentation

◆ operator()()

template<class PairT >
bool comma::CustomPairLessFunctor< PairT >::operator() ( const PairT &  left,
const PairT &  right 
) const
inline

Functor for pairs implementing a custom 'less than'. It relies on the 'less than' operator for the second elements and 'greater than' for the first ones.

Parameters
[in]leftpair
[in]rightSecond pair
Returns
true if left.second < right.second or (left.second == right.second and left.first > right.first); false otherwise

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