Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::OptionsRef< T > Class Template Reference

Borrowed typed options; the lvalue must outlive the synchronous lazy scene run. More...

#include <ui_app.hpp>

Public Member Functions

 OptionsRef (T &value) noexcept
 OptionsRef (T &&value)=delete
const T & get () const noexcept

Detailed Description

template<class T>
class portals::ui::OptionsRef< T >

Borrowed typed options; the lvalue must outlive the synchronous lazy scene run.

Template Parameters
TCaller-owned option type. Access never grants mutation.

Constructor & Destructor Documentation

◆ OptionsRef() [1/2]

template<class T>
portals::ui::OptionsRef< T >::OptionsRef ( T & value)
inlineexplicitnoexcept
Parameters
valueBorrowed lvalue; it must outlive this reference and the lazy run.

◆ OptionsRef() [2/2]

template<class T>
portals::ui::OptionsRef< T >::OptionsRef ( T && value)
delete
Parameters
valueTemporary options, deliberately rejected to prevent a dangling borrow.

Member Function Documentation

◆ get()

template<class T>
const T & portals::ui::OptionsRef< T >::get ( ) const
inlinenoexcept
Returns
Read-only caller-owned options, without transferring ownership.

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