Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::scoped_ptr< T > Class Template Reference

#include <scoped_ptr.hpp>

Inheritance diagram for boost::scoped_ptr< T >:

Public Types

typedef T element_type
 

Public Member Functions

 scoped_ptr (T *p=0)
 
 scoped_ptr (std::auto_ptr< T > p) BOOST_NOEXCEPT
 
 ~scoped_ptr ()
 
void reset (T *p=0)
 
Toperator* () const
 
Toperator-> () const
 
Tget () const BOOST_NOEXCEPT
 
void swap (scoped_ptr &b) BOOST_NOEXCEPT
 

Member Typedef Documentation

template<class T>
typedef T boost::scoped_ptr< T >::element_type

Constructor & Destructor Documentation

template<class T>
boost::scoped_ptr< T >::scoped_ptr ( T p = 0)
inlineexplicit
template<class T>
boost::scoped_ptr< T >::scoped_ptr ( std::auto_ptr< T p)
inlineexplicit
template<class T>
boost::scoped_ptr< T >::~scoped_ptr ( )
inline

Member Function Documentation

template<class T>
T& boost::scoped_ptr< T >::operator* ( ) const
inline
template<class T>
T* boost::scoped_ptr< T >::operator-> ( ) const
inline

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