libsq3
2007.10.18
|
The default destructor/cleanup functor for use with rcptr<>. More...
#include <refcount.hpp>
Public Member Functions | |
template<typename T > | |
void | operator() (T *&t) |
Calls delete t and assigns t to 0. More... | |
The default destructor/cleanup functor for use with rcptr<>.
Definition at line 46 of file refcount.hpp.
|
inline |
Calls delete t and assigns t to 0.
Specialized dtors need not call delete, but should assign t to 0, as this simplifies some client code.
T must be non-CVP-qualified and for this implementation (delete t) must be legal.
Definition at line 58 of file refcount.hpp.