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