Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::category::Rule< A, B > Struct Template Referenceexport

A type-erased Morphism A -> B between Species. More...

Public Types

using Domain = A
using Codomain = B

Public Member Functions

constexpr B operator() (const A &x) const
 The Morphic Application (The Arrow's Action).

Public Attributes

std::function< B(const A &)> apply

Detailed Description

template<IsSpecies A, IsSpecies B>
struct dedekind::category::Rule< A, B >

A type-erased Morphism A -> B between Species.

This wrapper reifies a functional rule into a formal Categorical Arrow, preventing C-style pointer decay.

Template Parameters
AThe Domain Species (The Source).
BThe Codomain Species (The Target).

The documentation for this struct was generated from the following file: