Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::category::IsCommutativeMonoid Concept Referenceexport

A Monoid where the operation is commutative. More...

Concept definition

template<typename T, typename Op>
A Monoid where the operation is commutative.
Definition total.cppm:605
Definition species.cppm:772
A Semigroup with a two-sided Identity element.
Definition total.cppm:584

Detailed Description

A Monoid where the operation is commutative.

Both bool (OR, AND) and unsigned int (multiplication) satisfy this level. Importantly, unsigned int with multiplication is a CommutativeMonoid but not a Group (no multiplicative inverse for 2).