PtrDelete.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_POLICIES_PTRDELETE_H_
36 #define _BLAZE_UTIL_POLICIES_PTRDELETE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
63 struct PtrDelete
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 PtrDelete::operator()( Type ptr ) const
97 {
98  checkedDelete( ptr );
99 }
100 //*************************************************************************************************
101 
102 } // namespace blaze
103 
104 #endif
Pointer-delete policy class.The PtrDelete policy functor class applies a delete operation to the give...
Definition: PtrDelete.h:63
void checkedDelete(T *ptr)
Type-checked delete operation.
Definition: CheckedDelete.h:69
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
void operator()(Type ptr) const
Implementation of the pointer-delete policy.
Definition: PtrDelete.h:96
Type-checked delete operations.