Sunshine latest
Self-hosted game stream host for Moonlight.
util::uniq_ptr< T, D > Class Template Reference
Inheritance diagram for util::uniq_ptr< T, D >:
[legend]

Public Types

using const_pointer = element_type const *
 
using deleter_type = D
 
using element_type = T
 
using pointer = element_type *
 

Public Member Functions

pointer get ()
 
const_pointer get () const
 
deleter_type & get_deleter ()
 
const deleter_type & get_deleter () const
 
 operator bool () const
 
pointer * operator& ()
 
pointer * operator& () const
 
std::add_lvalue_reference_t< element_type > operator* ()
 
std::add_lvalue_reference_t< element_type const > operator* () const
 
pointer operator-> ()
 
const_pointer operator-> () const
 
uniq_ptroperator= (const uniq_ptr &other) noexcept=delete
 
template<class V >
uniq_ptroperator= (std::unique_ptr< V, deleter_type > &&uniq) noexcept
 
template<class V >
uniq_ptroperator= (uniq_ptr< V, deleter_type > &&other) noexcept
 
pointer release ()
 
void reset (pointer p=pointer())
 
 uniq_ptr (const uniq_ptr &other) noexcept=delete
 
constexpr uniq_ptr (std::nullptr_t) noexcept
 
template<class V >
 uniq_ptr (std::unique_ptr< V, deleter_type > &&uniq) noexcept
 
template<class V >
 uniq_ptr (uniq_ptr< V, deleter_type > &&other) noexcept
 
template<class V >
 uniq_ptr (V *p) noexcept
 

Protected Attributes

deleter_type _deleter
 
pointer _p
 

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