YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::prev_slot_view< T > Struct Template Reference

Lightweight borrowed view over a direct parent output slot. More...

#include <context.hpp>

Public Types

using stored_type = std::remove_reference_t< T >
 
using type = std::remove_cv_t< stored_type >
 

Public Member Functions

template<typename U >
constexpr stored_typeget () const noexcept
 

Static Public Member Functions

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

Public Attributes

stored_typeref
 Borrowed reference to the direct parent payload.
 

Detailed Description

template<typename T>
struct yorch::prev_slot_view< T >

Lightweight borrowed view over a direct parent output slot.

The view carries exactly one payload object and exposes a type-based API so resolve_as(borrow_prev_t<...>, ...) can stay structurally similar to from_ctx(...).

Template Parameters
TStored payload type. Constness is preserved; references are not.

Definition at line 59 of file context.hpp.

Member Typedef Documentation

◆ stored_type

template<typename T >
using yorch::prev_slot_view< T >::stored_type = std::remove_reference_t<T>

Definition at line 60 of file context.hpp.

◆ type

template<typename T >
using yorch::prev_slot_view< T >::type = std::remove_cv_t<stored_type>

Definition at line 61 of file context.hpp.

Member Function Documentation

◆ contains()

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

Definition at line 71 of file context.hpp.

◆ get()

template<typename T >
template<typename U >
constexpr stored_type & yorch::prev_slot_view< T >::get ( ) const
inlineconstexprnoexcept

Definition at line 76 of file context.hpp.

Member Data Documentation

◆ ref

template<typename T >
stored_type& yorch::prev_slot_view< T >::ref

Borrowed reference to the direct parent payload.

Definition at line 68 of file context.hpp.


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