YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::no_prev Struct Reference

Sentinel view indicating that the current execution has no direct parent output. More...

#include <context.hpp>

Public Member Functions

template<typename T >
constexpr auto get () const -> T &
 Always fails because no_prev carries no retrievable value.
 

Static Public Member Functions

template<typename T >
static constexpr bool contains () noexcept
 

Detailed Description

Sentinel view indicating that the current execution has no direct parent output.

Definition at line 27 of file context.hpp.

Member Function Documentation

◆ contains()

template<typename T >
static constexpr bool yorch::no_prev::contains ( )
inlinestaticconstexprnoexcept

Definition at line 29 of file context.hpp.

◆ get()

template<typename T >
constexpr auto yorch::no_prev::get ( ) const -> T&
inlineconstexpr

Always fails because no_prev carries no retrievable value.

no_prev still exposes the same contains<T>() / get<T>() protocol shape as a concrete parent-slot view so generic resolution code can be written against one interface. The operation itself is invalid here, so get<T>() emits a targeted compile-time error if some code path tries to fetch a direct-parent value when none exists.

Definition at line 43 of file context.hpp.


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