Implement shared ownership for a resource.
More...
|
constexpr | ResourceShared (std::nullptr_t=nullptr) |
| Default constructor.
|
|
constexpr | ResourceShared (UNIQUE &&value) |
| Constructs from unique type.
|
|
constexpr | ResourceShared (base::value_type value, typename UNIQUE::deleter deleter={}) |
| Constructs from raw type.
|
|
constexpr bool | unique () const |
| True if this is the only shared instance.
|
|
void | reset () |
| Reset this instance.
|
|
reference | get () const |
| Get reference.
|
|
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 reference * | operator-> () const |
| Gets addressable reference.
|
|
constexpr reference * | operator-> () |
| Gets addressable reference.
|
|
|
class | ResourceWeak< UNIQUE > |
|
|
using | reference = UNIQUE::reference |
| The reference resource type.
|
|
using | value_type = typename reference::value_type |
| The raw resource type.
|
|
constexpr | ResourcePtrBase (value_type value={}) |
| Constructs from raw type.
|
|
reference & | get () |
| Get reference.
|
|
template<class UNIQUE>
class SDL::ResourceShared< UNIQUE >
- Template Parameters
-
The documentation for this class was generated from the following file: