A SDL managed resource.
More...
|
using | value_type = T |
| The raw resource type.
|
|
|
constexpr | Resource (T resource={}) |
| Constructs from the underlying resource.
|
|
constexpr | Resource (const ResourceHandle< Resource< T > > auto &resource) |
| Constructs from pointer like.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr | operator value_type () const |
| Converts back to underlying type.
|
|
constexpr bool | operator== (const Resource &other) const =default |
| Comparison.
|
|
constexpr bool | operator== (std::nullopt_t) const |
| Comparison.
|
|
constexpr bool | operator== (std::nullptr_t) const |
| Comparison.
|
|
constexpr T | get () const |
| Return contained resource;.
|
|
constexpr const T | operator-> () const |
| Access to fields.
|
|
constexpr T | operator-> () |
| Access to fields.
|
|
template<class T>
class SDL::Resource< T >
- Template Parameters
-
T | the underlying resource type. |
The documentation for this class was generated from the following file: