|
|
constexpr | basic_native_handle (std::nullptr_t=nullptr) noexcept |
| |
template<typename U >
requires std::is_pointer_v<U> |
| | basic_native_handle (U value) noexcept |
| | Constructs the object from a pointer.
|
| |
| constexpr | basic_native_handle (Mapped value) noexcept |
| | Constructs the object from a mapped number.
|
| |
|
constexpr bool | operator== (const basic_native_handle &) const noexcept=default |
| |
|
constexpr auto | operator<=> (const basic_native_handle &) const noexcept=default |
| |
| constexpr | operator bool () const noexcept |
| | Checks whether the stored value is a valid handle.
|
| |
template<typename U >
requires std::is_pointer_v<U> |
| | operator U () const noexcept |
| | Converts to a pointer.
|
| |
|
constexpr | operator Mapped () const noexcept |
| | Converts to a mapped number.
|
| |
template<handle_stroage_type T = std::uintptr_t, typename Mapped = T, auto Validator = &is_valid_handle_value<Mapped>>
requires handle_validator_type<Validator, Mapped>
class essence::basic_native_handle< T, Mapped, Validator >
Stores a platform-dependent handle.
- Template Parameters
-
| T | The underlying storage type. |
| Mapped | The integral type to map the T value to (default T). |
| Validator | A callable object to validate the handle. |