#include <memory>
#include <cassert>
Go to the source code of this file.
Data Structures | |
class | scoped_ptr< T > |
Functions | |
template<class T > | |
void | swap (scoped_ptr< T > &a, scoped_ptr< T > &b) |
template<class T > | |
T * | get_pointer (scoped_ptr< T > const &p) |
void swap | ( | scoped_ptr< T > & | a, | |
scoped_ptr< T > & | b | |||
) | [inline] |
Definition at line 70 of file scoped_ptr.hpp.
00071 { 00072 a.swap(b); 00073 }
T* get_pointer | ( | scoped_ptr< T > const & | p | ) | [inline] |
Definition at line 75 of file scoped_ptr.hpp.
00076 { 00077 return p.get(); 00078 }