SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::OptionalRef< T > Class Template Reference

Optional-like shim for references. More...

Public Member Functions

constexpr OptionalRef (std::nullopt_t=std::nullopt)
 
constexpr OptionalRef (T &value)
 
constexpr auto operator<=> (const OptionalRef &) const =default
 
constexpr bool has_value () const
 
constexpr const T & value () const
 
constexpr T & value ()
 
constexpr operator T* () const
 
constexpr bool operator== (std::nullopt_t) const
 
constexpr T & operator* ()
 
constexpr const T & operator* () const
 
constexpr T * operator-> ()
 
constexpr const T * operator-> () const
 

Detailed Description

template<class T>
class SDL::OptionalRef< T >

This allows us explicitly annotate optional parameters that would otherwise be references.

Template Parameters
Tthe underlying type

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