libsq3  2007.10.18
Public Member Functions | List of all members
refcount::plain_delete_finalizer Struct Reference

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...
 

Detailed Description

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

Definition at line 46 of file refcount.hpp.

Member Function Documentation

◆ operator()()

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: