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

Base class for resource pointer-like objects. More...

Inheritance diagram for SDL::ResourcePtrBase< RESOURCE >:
Inheritance graph
[legend]

Public Types

using reference = RESOURCE
 The reference resource type.
 
using value_type = typename reference::value_type
 The raw resource type.
 

Public Member Functions

constexpr operator bool () const
 Check if not null.
 
constexpr bool operator== (const ResourcePtrBase &other) const
 Comparison.
 
constexpr bool operator== (std::nullptr_t) const
 Comparison.
 
constexpr bool operator== (std::nullopt_t) const
 Comparison.
 
constexpr reference operator* () const
 Gets reference.
 
constexpr const referenceoperator-> () const
 Gets addressable reference.
 
constexpr referenceoperator-> ()
 Gets addressable reference.
 
reference get () const
 Get reference.
 

Protected Member Functions

constexpr ResourcePtrBase (value_type value={})
 Constructs from raw type.
 
referenceget ()
 Get reference.
 

Detailed Description

template<class RESOURCE>
class SDL::ResourcePtrBase< RESOURCE >
Template Parameters
RESOURCE

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