Smart pointer with reference counting support. More...
#include <shared_ptr.h>
Public Member Functions | |
| shared_ptr () | |
| Constructor. | |
| shared_ptr (T *data) | |
| Constructor. | |
| shared_ptr (const shared_ptr< T > &src) | |
| Copy constructor. | |
| ~shared_ptr () | |
| Destructor. | |
| shared_ptr< T > & | operator= (const shared_ptr< T > &src) |
| Assignment operator. | |
| T * | operator-> () const |
| Dereference operator. | |
| T & | operator* () const |
| Dereference operator. | |
| bool | operator< (const shared_ptr< T > &src) const |
| Comparison operator. | |
Smart pointer with reference counting support.
This smart pointer template class is like std::auto_ptr class but with internal reference counting support. Its means that you can freely use this smart pointer in STL containers.