|
ADS
Algorithms and Data Structures
|
the sum of the values, an abelian group when V has the opposites More...
#include <ADS/tree/JoinTree.h>
Public types | |
| using | Value = V |
| the sums, of the type of the values | |
Static public member functions | |
| static Value | identity (void) |
| 0, the value made by V() | |
| template<class K> | |
| static Value | from (const K &, const V &v) |
| the value \( v \) of the pair | |
| static Value | combine (const Value &a, const Value &b) |
| \( a + b \) | |
| static Value | inverse (const Value &a) |
| \( -a \) | |
Static public attributes | |
| static constexpr bool | commutative = true |
| \( a + b = b + a \) | |
the sum of the values, an abelian group when V has the opposites
| using ADS::SumAugmentation< V >::Value = V |
the sums, of the type of the values
|
inlinestatic |
\( a + b \)
|
inlinestatic |
the value \( v \) of the pair
|
inlinestatic |
0, the value made by V()
|
inlinestatic |
\( -a \)
|
staticconstexpr |
\( a + b = b + a \)