ArrayDelete.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_POLICIES_ARRAYDELETE_H_
36 #define _BLAZE_UTIL_POLICIES_ARRAYDELETE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
64 {
65  //**Utility functions***************************************************************************
68  template< typename Type >
69  inline void operator()( Type ptr ) const;
71  //**********************************************************************************************
72 };
73 //*************************************************************************************************
74 
75 
76 
77 
78 //=================================================================================================
79 //
80 // UTILITY FUNCTIONS
81 //
82 //=================================================================================================
83 
84 //*************************************************************************************************
95 template< typename Type >
96 inline void ArrayDelete::operator()( Type ptr ) const
97 {
98  checkedArrayDelete( ptr );
99 }
100 //*************************************************************************************************
101 
102 } // namespace blaze
103 
104 #endif
Array-delete policy class.The ArrayDelete policy functor class applies an array delete operation to t...
Definition: ArrayDelete.h:63
void checkedArrayDelete(T *ptr)
Type-checked delete[] operation.
Definition: CheckedDelete.h:91
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Type-checked delete operations.
void operator()(Type ptr) const
Implementation of the array-delete policy.
Definition: ArrayDelete.h:96