List of all members
blaze::PtrDelete Struct Reference

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

Detailed Description

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!

Member Function Documentation

◆ operator()()

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

Implementation of the pointer-delete policy.

Parameters
ptrThe pointer to delete.
Returns
void

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!


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