10 template <
typename HandleType>
18 *
this = std::move(other);
33 other.m_handle = XR_NULL_HANDLE;
34 other.m_destroyer =
nullptr;
47 explicit operator bool() const noexcept {
51 HandleType
Get() const noexcept {
57 assert(destroyFunction !=
nullptr);
XrResult(XRAPI_PTR *)(HandleType) PFN_DestroyFunction
UniqueXrHandle(UniqueXrHandle &&other) noexcept
bool operator!=(const UniqueXrHandle &other) noexcept
UniqueXrHandle & operator=(const UniqueXrHandle &)=delete
~UniqueXrHandle() noexcept
PFN_DestroyFunction m_destroyer
HandleType Get() const noexcept
HandleType * Put(PFN_DestroyFunction destroyFunction) noexcept
UniqueXrHandle & operator=(UniqueXrHandle &&other) noexcept
bool operator==(const UniqueXrHandle &other) noexcept
UniqueXrHandle(const UniqueXrHandle &)=delete
The xr::DispatchTable struct contains all available PFN pointers to xr functions including those in a...