![]() |
Blaze 3.9
|
Deallocate policy class. More...
#include <Deallocate.h>
Public Member Functions | |
Utility functions | |
template<typename Type > | |
void | operator() (Type ptr) const |
Implementation of the deallocate deletion policy. More... | |
Deallocate policy class.
The Deallocate deletion policy is the according deletion policy for arrays allocated via the blaze::allocate function. It uses deallocate to free the resource. 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 deallocate deletion policy.
ptr | The pointer to delete. |
This function frees the given pointer resource via the blaze::deallocate function. Note that the delete operation is NOT permitted for incomplete 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!