reflex::range_compare< T > Struct Template Reference

updated Sun Aug 21 2022 by Robert van Engelen
 
Public Member Functions | List of all members
reflex::range_compare< T > Struct Template Reference

Functor to define a total order on ranges (intervals) represented by pairs. More...

#include <ranges.h>

Public Member Functions

bool operator() (const std::pair< T, T > &lhs, const std::pair< T, T > &rhs) const
 Compares two ranges lhs and rhs and returns true if lhs < rhs. More...
 

Detailed Description

template<typename T>
struct reflex::range_compare< T >

Functor to define a total order on ranges (intervals) represented by pairs.

Member Function Documentation

template<typename T >
bool reflex::range_compare< T >::operator() ( const std::pair< T, T > &  lhs,
const std::pair< T, T > &  rhs 
) const
inline

Compares two ranges lhs and rhs and returns true if lhs < rhs.

Returns
true if lhs < rhs.
Parameters
lhsLHS range to compare
rhsRHS range to compare

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