![]() |
Pointer-delete policy class.The PtrDelete policy functor class applies a delete operation to the given argument. Note that the delete operation is NOT permitted for inclomplete types (i.e. declared but undefined data types). The attempt to apply a PtrDelete functor to a pointer to an object of incomplete type results in a compile time error! More...
#include <PtrDelete.h>
Public Member Functions | |
Utility functions | |
template<typename Type > | |
void | operator() (Type ptr) const |
Implementation of the pointer-delete policy. More... | |
Pointer-delete policy class.
The PtrDelete policy functor class applies a delete operation to the given argument. Note that the delete operation is NOT permitted for inclomplete types (i.e. declared but undefined data types). The attempt to apply a PtrDelete functor to a pointer to an object of incomplete type results in a compile time error!
|
inline |
Implementation of the pointer-delete policy.
ptr | The pointer to delete. |
This function applies a standard delete operation to the given argument. Note that the delete operation is NOT permitted for inclomplete types (i.e. declared but undefined data types). The attempt to use this function for a pointer to an object of incomplete type results in a compile time error!