scoped_ptr.hpp File Reference

#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)

Function Documentation

template<class T >
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 }

template<class T >
T* get_pointer ( scoped_ptr< T > const &  p  )  [inline]

Definition at line 75 of file scoped_ptr.hpp.

00076 {
00077     return p.get();
00078 }

Generated on Sun Apr 11 12:23:09 2010 for RenderStack by  doxygen 1.6.3