ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::Monoid Concept Reference

a monoid on G::Value: the identity G::identity() and the associative operation G::combine( a , b ) More...

#include <ADS/Algebra.h>

Concept definition

template< class G >
concept Monoid = requires( const typename G::Value & a )
{
{ G::identity() } -> std::convertible_to< typename G::Value >;
{ G::combine( a , a ) } -> std::convertible_to< typename G::Value >;
}
a monoid on G::Value: the identity G::identity() and the associative operation G::combine( a ,...
Definition Algebra.h:117

Detailed description

a monoid on G::Value: the identity G::identity() and the associative operation G::combine( a , b )