s11n::refcount::plain_delete_finalizer Struct Reference

The default destructor/cleanup functor for use with rcptr<>. More...

#include <refcount.hpp>

List of all members.

Public Member Functions

template<typename T>
void operator() (T *&t)
 Calls delete t and assigns t to 0.


Detailed Description

The default destructor/cleanup functor for use with rcptr<>.

Definition at line 47 of file refcount.hpp.


Member Function Documentation

template<typename T>
void s11n::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 59 of file refcount.hpp.


The documentation for this struct was generated from the following file:
Generated on Sun Apr 27 13:16:05 2008 for libs11n by  doxygen 1.5.3