Owning wrapper for C-API opaque handle types. More...
#include <eagine/handle.hpp>
Public Member Functions | |
constexpr | basic_owned_handle () noexcept=default |
Default constructor. More... | |
constexpr | basic_owned_handle (basic_owned_handle &&tmp) noexcept |
Move constructor. | |
auto | operator= (basic_owned_handle &&tmp) noexcept -> auto & |
Move assignment operator. | |
basic_owned_handle (const basic_owned_handle &)=delete | |
Copy constructor. | |
auto | operator= (const basic_owned_handle &)=delete |
Copy assignment operator. | |
constexpr | basic_owned_handle (base adopted) noexcept |
Constructor adopting a non-owning handle wrapper. | |
constexpr | basic_owned_handle (Handle name) noexcept |
Constructor adopting an underlying handle value. | |
auto | release () noexcept -> Handle |
Releases the underlying handle value. More... | |
![]() | |
constexpr | basic_handle () noexcept=default |
Default constructor. More... | |
constexpr | basic_handle (basic_handle &&tmp) noexcept |
Move constructor. | |
constexpr | basic_handle (const basic_handle &) noexcept=default |
Copy constructor. | |
constexpr | basic_handle (Handle name) noexcept |
Construction from the underlying handle type. | |
auto | operator= (basic_handle &&tmp) noexcept -> auto & |
Move assignment operator. | |
auto | operator= (const basic_handle &) noexcept -> basic_handle &=default |
Copy assignment operator. | |
constexpr auto | is_valid () const noexcept -> bool |
Indicates if this instance contains a valid handle. | |
constexpr | operator bool () const noexcept |
Indicates if this instance contains a valid handle. More... | |
constexpr | operator Handle () const noexcept |
Explicit conversion to the underlying handle type. | |
Additional Inherited Members | |
![]() | |
using | tag_type = Tag |
Alias for the tag type. | |
using | handle_type = Handle |
Alias for the underlying handle type. | |
Owning wrapper for C-API opaque handle types.
Tag | type distinguisihing various handler with the same underlying type. |
Handle | the underlying handle type. |
invalid | the invalid value for this particular handle type. |
|
constexprdefaultnoexcept |
Default constructor.
|
inlinenoexcept |
Releases the underlying handle value.