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

Functor for pairs implementing a custom 'greater than'. It relies on the 'greater than' operator for the second elements and 'less 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 'greater than'. It relies on the 'greater than' operator for the second elements and 'less than' for the first ones. More...
 

Detailed Description

template<typename PairT>
struct comma::CustomPairGreaterFunctor< PairT >

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

Template Parameters
PairTType for pairs

Member Function Documentation

◆ operator()()

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

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

Parameters
[in]leftFirst pair
[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: