ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::MaxOf< T > Struct Template Reference

the selective commutative monoid of the largest value of T, of identity \( -\infty \) if T has it, its least value otherwise More...

#include <ADS/Algebra.h>

Public types

using Value = T
 the maxima

Static public member functions

static constexpr Value identity (void)
 the least value of the type
static constexpr Value combine (const Value &a, const Value &b)
 \( \max( a , b ) \), \( a \) if they are equivalent

Static public attributes

static constexpr bool commutative = true
 it commutes
static constexpr bool selective = true
 one of the two

Detailed description

template<class T>
struct ADS::MaxOf< T >

the selective commutative monoid of the largest value of T, of identity \( -\infty \) if T has it, its least value otherwise

Member typedef documentation

◆ Value

template<class T>
using ADS::MaxOf< T >::Value = T

the maxima

Member function documentation

◆ combine()

template<class T>
constexpr Value ADS::MaxOf< T >::combine ( const Value & a,
const Value & b )
inlinestaticconstexpr

\( \max( a , b ) \), \( a \) if they are equivalent

◆ identity()

template<class T>
constexpr Value ADS::MaxOf< T >::identity ( void )
inlinestaticconstexpr

the least value of the type

Member data documentation

◆ commutative

template<class T>
bool ADS::MaxOf< T >::commutative = true
staticconstexpr

it commutes

◆ selective

template<class T>
bool ADS::MaxOf< T >::selective = true
staticconstexpr

one of the two


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