Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

s11n::object_deleter Struct Reference

Deletes an object passed to it. More...

#include <algo.hpp>

List of all members.

Public Member Functions

template<typename T>
void operator() (T *t) const
 Deletes t.
template<typename T>
void operator() (const T &t) const
 Does nothing: is here to allow some reference-vs-pointer-type transparency.


Detailed Description

Deletes an object passed to it.

This type accepts non-pointer types for "destruction." This is a non-operation, and is supported to allow other template code to generically free objects without needing to know if they are pointers. This allows some formerly-non-consolidatable reference-vs-pointer-type code to share a single implementation, as "delete(myobj)" is not valid for non-pointer types, but object_deleter()(myobj) is.

DEPRECATED: this will be removed in favor of cleanup_serializable().

Deprecated:

Definition at line 130 of file algo.hpp.


Member Function Documentation

template<typename T>
void s11n::object_deleter::operator() const T &  t  )  const [inline]
 

Does nothing: is here to allow some reference-vs-pointer-type transparency.

Definition at line 154 of file algo.hpp.

template<typename T>
void s11n::object_deleter::operator() T *  t  )  const [inline]
 

Deletes t.

Definition at line 136 of file algo.hpp.


The documentation for this struct was generated from the following file:
Generated on Fri Nov 25 17:19:29 2005 for libs11n-1.2.0 by  doxygen 1.4.4