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

(T, Op) is closed under Op, where Op may be either binary or unary. Distinct from IsClosedUnder (binary) so call sites that need a specific arity stay typo-proof. More...

Concept definition

template<typename T, typename Op>
(T, Op) is closed under Op, where Op may be either binary or unary. Distinct from IsClosedUnder (bina...
Definition total.cppm:233
Unary closure variant: Op{}(s) returns S for any S-typed operand. Cardinality has no IsClosedUnderUna...
Definition total.cppm:225
(S, Op) is closed under a binary operation: Op{}(s_1, s_2) returns a value of type S for any S-typed ...
Definition total.cppm:212

Detailed Description

(T, Op) is closed under Op, where Op may be either binary or unary. Distinct from IsClosedUnder (binary) so call sites that need a specific arity stay typo-proof.