|
Dedekind 0.0.0
A structuralist C++23 Module Library
|
The injections of the coproduct std::variant<A, B> as a named operation (IsCoproduct's Op, #881): inl / inr place a value by index, so equal summands stay apart (variant<int, int>). Static members, as the concept asks for Op::inl(a) / Op::inr(b).
More...
Static Public Member Functions | |
| static constexpr std::variant< A, B > | inl (const A &a) |
| static constexpr std::variant< A, B > | inr (const B &b) |
The injections of the coproduct std::variant<A, B> as a named operation (IsCoproduct's Op, #881): inl / inr place a value by index, so equal summands stay apart (variant<int, int>). Static members, as the concept asks for Op::inl(a) / Op::inr(b).
| A,B | the summands. |