PVData C++ 8.0.9
Loading...
Searching...
No Matches
epics::auto_ptr< typename _Tp > Class Template Reference

Public Types

typedef _Tp element_type

Public Member Functions

 auto_ptr (auto_ptr &__a)
 auto_ptr (auto_ptr< _Tp1 > &__a)
 auto_ptr (auto_ptr_ref< element_type > __ref)
 auto_ptr (element_type *__p=0)
element_type * get () const
element_type & operator* () const
element_type * operator-> () const
auto_ptr & operator= (auto_ptr &__a)
auto_ptr & operator= (auto_ptr< _Tp1 > &__a)
element_type * release ()
void reset (element_type *__p=0)

Detailed Description

A semi-hack to help with migration from std::auto_ptr to std::unique_ptr, and avoid copious deprecation warning spam which may be hiding legitimate issues.

Provides epics::auto_ptr<T> and epics::swap()

epics::auto_ptr<T> is std::auto_ptr<T> for c++98 and std::unique_ptr<T> for >= c++11.

epics::swap() is the only supported operation. copy/assignment/return are not supported (use auto_ptr or unique_ptr explicitly).


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