Delete (counit) ε:A→1. Completes the commutative comonoid.
More...
|
|
using | Domain = A |
|
using | Codomain = One |
|
| constexpr Codomain | operator() (const A &) const |
| | Discard the input into the terminal object ε(a)=•.
|
template<typename A>
struct dedekind::category::Delete< A >
Delete (counit) ε:A→1. Completes the commutative comonoid.
- Template Parameters
-
- Note
- The category terminal object
One (:limit) IS std::monostate, so this is an IsTerminalMorphism; grounding resolved the earlier placeholder.
◆ operator()()
Discard the input into the terminal object ε(a)=•.
- Parameters
-
| a | the value to delete (unused; every value maps to One). |
- Returns
- the unique inhabitant of
One.
The documentation for this struct was generated from the following file: