Deletes an object passed to it. More...
#include <algo.hpp>
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. |
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().
Definition at line 130 of file algo.hpp.
void s11n::object_deleter::operator() | ( | const T & | t | ) | const [inline] |
void s11n::object_deleter::operator() | ( | T * | t | ) | const [inline] |