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

an augmentation of a map from K to V: a monoid on G::Value, of identity G::identity() and associative operation G::combine( a , b ), and the value G::from( k , v ) of a pair; the augmented value of a subtree is the combination of the values of its pairs by increasing keys More...

#include <ADS/tree/JoinTree.h>

Concept definition

template< class G , class K , class V >
concept Augmentation =
requires( const K & k , const V & v , const typename G::Value & a )
{
{ G::identity() } -> std::convertible_to< typename G::Value >;
{ G::from( k , v ) } -> std::convertible_to< typename G::Value >;
{ G::combine( a , a ) } -> std::convertible_to< typename G::Value >;
}
an augmentation of a map from K to V: a monoid on G::Value, of identity G::identity() and associative...
Definition JoinTree.h:174

Detailed description

an augmentation of a map from K to V: a monoid on G::Value, of identity G::identity() and associative operation G::combine( a , b ), and the value G::from( k , v ) of a pair; the augmented value of a subtree is the combination of the values of its pairs by increasing keys