|
ADS
Algorithms and Data Structures
|
the abelian group of the sums of T, of identity T() More...
#include <ADS/Algebra.h>
Public types | |
| using | Value = T |
| the sums | |
Static public member functions | |
| static constexpr Value | identity (void) |
| 0, the value made by T() | |
| static constexpr Value | combine (const Value &a, const Value &b) |
| \( a + b \) | |
| static constexpr Value | inverse (const Value &a) |
| \( -a \) | |
Static public attributes | |
| static constexpr bool | commutative = true |
| \( a + b = b + a \) | |
the abelian group of the sums of T, of identity T()
| using ADS::SumOf< T >::Value = T |
the sums
|
inlinestaticconstexpr |
\( a + b \)
|
inlinestaticconstexpr |
0, the value made by T()
|
inlinestaticconstexpr |
\( -a \)
|
staticconstexpr |
\( a + b = b + a \)