uvcc
libuv C++ bindings
uv::any_ptr Class Reference

The analogue of std::unique_ptr that managed object type is not defined at compile time and can be varied. More...

#include "utility.hpp"

Public Member Functions

 any_ptr (const any_ptr &)=delete
 
any_ptroperator= (const any_ptr &)=delete
 
 any_ptr (any_ptr &&_that) noexcept
 
any_ptroperator= (any_ptr &&_that)
 
constexpr any_ptr (std::nullptr_t) noexcept
 
any_ptroperator= (std::nullptr_t)
 
template<typename _T_ >
 any_ptr (_T_ *&&_ptr) noexcept
 
void * release () noexcept
 
void reset (std::nullptr_t _ptr=nullptr)
 
template<typename _T_ >
void reset (_T_ *&&_ptr)
 
template<typename _T_ = void>
const std::decay< _T_ >::type * get () const noexcept
 
template<typename _T_ = void>
std::decay< _T_ >::type * get () noexcept
 
const std::type_infotag () const noexcept
 
 operator bool () const noexcept
 Equivalent to (get() != nullptr).
 

Detailed Description

The analogue of std::unique_ptr that managed object type is not defined at compile time and can be varied.

Definition at line 664 of file utility.hpp.


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