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 46 of file refcount.hpp.


Member Function Documentation

template<typename T >
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.


The documentation for this struct was generated from the following file:

Generated on Wed Apr 29 07:59:28 2009 for libsq3 by  doxygen 1.5.8