walberla::math::Vector2LexicographicalyLess< T > Struct Template Reference

Detailed Description

template<typename T>
struct walberla::math::Vector2LexicographicalyLess< T >

Functor providing a lexicographical ordering for Vector2.

Template Parameters
TDatatype of the compared Vector2's elements.

#include <Vector2.h>

Public Member Functions

bool operator() (const Vector2< T > &lhs, const Vector2< T > &rhs) const
 Provides a lexicographical less-than-operator for Vector2. More...

Member Function Documentation

◆ operator()()

template<typename T >
bool walberla::math::Vector2LexicographicalyLess< T >::operator() ( const Vector2< T > &  lhs,
const Vector2< T > &  rhs 
) const

Provides a lexicographical less-than-operator for Vector2.

lhsleft hand side of less-than-operator.
rhsright hand side of less-than-operator.
true if lhs < rhs (lexicographically), else returns false.

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