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

a monoid of the maps A::Map acting on the values of the monoid G: the identity map A::id(), the composition A::compose( f , g ) (first \( g \), then \( f \)), and A::apply( f , a , n ), the map applied to the aggregate \( a \) of \( n \) values More...

#include <ADS/Algebra.h>

Concept definition

template< class A , class G >
concept Action =
Monoid< G > && requires( const typename A::Map & f ,
const typename G::Value & a , std::size_t n )
{
{ A::id() } -> std::convertible_to< typename A::Map >;
{ A::compose( f , f ) } -> std::convertible_to< typename A::Map >;
{ A::apply( f , a , n ) } -> std::convertible_to< typename G::Value >;
}
a monoid of the maps A::Map acting on the values of the monoid G: the identity map A::id(),...
Definition Algebra.h:149
a monoid on G::Value: the identity G::identity() and the associative operation G::combine( a ,...
Definition Algebra.h:117

Detailed description

a monoid of the maps A::Map acting on the values of the monoid G: the identity map A::id(), the composition A::compose( f , g ) (first \( g \), then \( f \)), and A::apply( f , a , n ), the map applied to the aggregate \( a \) of \( n \) values