SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::ResourceConstRef< RAW_POINTER, RAW_CONST_POINTER > Class Template Reference

Const reference wrapper for a given resource,. More...

Public Types

using RawPointer = RAW_POINTER
 The underlying raw pointer type.
using RawConstPointer = RAW_CONST_POINTER
 The underlying const raw pointer type.

Public Member Functions

constexpr ResourceConstRef (RawConstPointer resource)
 Constructs from const pointer.
constexpr ResourceConstRef (std::nullptr_t=nullptr)
 Constructs null/invalid.
constexpr operator bool () const
 Converts to bool.
constexpr auto operator<=> (const ResourceConstRef &other) const =default
 Comparison.
constexpr operator RawConstPointer () const
 Converts to underlying type.
constexpr operator RawPointer () const
 Converts to underlying type.
constexpr auto operator-> () const
 member access to underlying type.

Detailed Description

template<typename RAW_POINTER, typename RAW_CONST_POINTER>
class SDL::ResourceConstRef< RAW_POINTER, RAW_CONST_POINTER >

Const reference wrapper for a given resource,.


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