std::unique_ptr(3)

NAME
std::unique_ptr - 20.7.12.2 unique_ptr for single objects.

SYNOPSIS

  Public Types
typedef _Tp_Deleter deleter_type
typedef _Tp element_type
typedef _Tp * pointer

  Public Member Functions
pointer get () const
std::add_lvalue_reference< typename std::add_const< deleter_type >::type >::type get_deleter () const
std::add_lvalue_reference< deleter_type >::type get_deleter ()
operator __unspecified_bool_type () const
std::add_lvalue_reference< element_type >::type operator* () const
pointer operator-> () const
template<typename _Up , typename _Up_Deleter > unique_ptr & operator= (const unique_ptr< _Up, _Up_Deleter > &)
unique_ptr & operator= (const unique_ptr &)
unique_ptr & operator= (__unspecified_pointer_type)
template<typename _Up , typename _Up_Deleter > unique_ptr & operator= (unique_ptr< _Up, _Up_Deleter > &&__u)
unique_ptr & operator= (unique_ptr &&__u)
pointer release ()
void reset (pointer __p=pointer())
void swap (unique_ptr &&__u)
template<typename _Up , typename _Up_Deleter > unique_ptr (const unique_ptr< _Up, _Up_Deleter > &)
unique_ptr (const unique_ptr &)
template<typename _Up , typename _Up_Deleter > unique_ptr (unique_ptr< _Up, _Up_Deleter > &&__u)
unique_ptr (unique_ptr &&__u)
unique_ptr (pointer __p, typename std::remove_reference< deleter_type >::type &&__d)
unique_ptr (pointer __p, typename std::conditional< std::is_reference< deleter_type >::value, deleter_type, const deleter_type & >::type __d)
unique_ptr (pointer __p)

Detailed Description

  template<typename _Tp, typename _Tp_Deleter = default_delete<_Tp>> class std::unique_ptr< _Tp, _Tp_Deleter >
20.7.12.2 unique_ptr for single objects.

Definition at line 90 of file unique_ptr.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.