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_ptr & | operator= (const any_ptr &)=delete |
any_ptr (any_ptr &&_that) noexcept | |
any_ptr & | operator= (any_ptr &&_that) |
constexpr | any_ptr (std::nullptr_t) noexcept |
any_ptr & | operator= (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_info * | tag () const noexcept |
operator bool () const noexcept | |
Equivalent to (get() != nullptr) . | |
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.