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

Terminal-object witness through an optional projection policy. More...

Concept definition

template<typename T, typename Project std::identity>
requires(Project project, const T& t) {
{ project(t) };
} &&
IsTerminalObject<std::remove_cvref_t<decltype(std::declval<Project>()(
std::declval<const T&>()))>>
Terminal-object witness through an optional projection policy.
Definition limit.cppm:168

Detailed Description

Terminal-object witness through an optional projection policy.

With the default projector (std::identity), this reduces to IsTerminalObject<T>. With an opt-in projector (for example an operator-> drill-down policy), wrappers can expose a terminal object while keeping ownership/lifetime semantics explicit.