#include <reference-count.h>
Public Methods | |
copy_on_write_ptr (T *pt=0) | |
copy_on_write_ptr (const copy_on_write_ptr< T > &rhs) | |
copy_on_write_ptr< T > & | operator= (const copy_on_write_ptr< T > &rhs) |
~copy_on_write_ptr () | |
const T * | operator-> () const |
const T & | operator * () const |
T & | operator * () |
T * | operator-> () |
This class has been adapted from Scott Meyers "More Effective C++". The class can be used also for pointers to abstract classes, due to replacement of `new T' by copy_traits<T>::clone(T*).
Definition at line 55 of file reference-count.h.
|
Definition at line 82 of file reference-count.h. |
|
Definition at line 58 of file reference-count.h. |
|
Definition at line 61 of file reference-count.h. |
|
Definition at line 91 of file reference-count.h. References counter. |
|
Definition at line 63 of file reference-count.h. |
|
Definition at line 64 of file reference-count.h. |
|
Definition at line 66 of file reference-count.h. |
|
Definition at line 67 of file reference-count.h. |