sandbox
Loading...
Searching...
No Matches
sbx::memory::optional_ref< Type > Class Template Reference

Public Types

using value_type = Type
 

Public Member Functions

constexpr optional_ref (value_type &value) noexcept
 
constexpr optional_ref (std::nullopt_t) noexcept
 
 optional_ref (value_type &&)=delete
 
 optional_ref (value_type *)=delete
 
auto operator= (value_type &value) noexcept -> optional_ref &
 
auto operator= (std::nullopt_t) noexcept -> optional_ref &
 
auto operator= (value_type *) -> optional_ref &=delete
 
auto has_value () const noexcept -> bool
 
 operator bool () const noexcept
 
auto value () const -> Type &
 
auto operator* () const noexcept -> Type &
 
auto operator-> () const noexcept -> Type *
 
template<typename U >
auto value_or (U &&fallback) const noexcept -> Type &
 
auto reset () noexcept -> void
 

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