All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
blaze::Deallocate Struct Reference

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! More...

#include <Deallocate.h>

Public Member Functions

Utility functions
template<typename Type >
void operator() (Type ptr) const
 Implementation of the deallocate deletion policy. More...
 

Detailed Description

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!

Member Function Documentation

template<typename Type >
void blaze::Deallocate::operator() ( Type  ptr) const
inline

Implementation of the deallocate deletion policy.

Parameters
ptrThe pointer to delete.
Returns
void

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!


The documentation for this struct was generated from the following file: