SDL3pp
A slim C++ wrapper for SDL3
|
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 |
This allows us explicitly annotate optional parameters that would otherwise be references.
T | the underlying type |