#include <refcount.hpp>
Public Member Functions | |
template<typename T > | |
void | operator() (T *&t) |
Calls delete t and assigns t to 0. |
Definition at line 46 of file refcount.hpp.
void refcount::plain_delete_finalizer::operator() | ( | T *& | t | ) | [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.