HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::not_null< T > Class Template Reference

Public Types

using element_type = std::pointer_traits<T>::element_type
using pointer = element_type *
using reference = element_type &

Public Member Functions

 not_null (nullptr_t)=delete
not_null & operator= (nullptr_t)=delete
 not_null (std::in_place_t, T &&o) noexcept
template<nullable_pointer O>
requires requires { this->_p = o._p; }
 not_null (not_null< O > const &o) noexcept
template<nullable_pointer O>
requires requires { this->_p = o._p; }
not_null & operator= (not_null< O > const &o) noexcept
template<nullable_pointer O>
requires requires { this->_p = std::move(o._p); }
 not_null (not_null< O > &&o) noexcept
template<nullable_pointer O>
requires requires { this->_p = std::move(o._p); }
not_null & operator= (not_null< O > &&o) noexcept
template<nullable_pointer O>
requires requires { this->_p = std::forward<O>(o); }
 not_null (O &&o) noexcept
template<nullable_pointer O>
requires requires { this->_p = std::forward<O>(o); }
not_null & operator= (O &&o) noexcept
 operator T () const noexcept
pointer get () const noexcept
 operator bool () const noexcept
bool operator== (nullptr_t) const noexcept
reference operator* () const noexcept
pointer operator-> () const noexcept

The documentation for this class was generated from the following file: