Blaze 3.9
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
46namespace 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//*************************************************************************************************
95template< typename Type >
96inline void PtrDelete::operator()( Type ptr ) const
97{
98 checkedDelete( ptr );
99}
100//*************************************************************************************************
101
102} // namespace blaze
103
104#endif
Type-checked delete operations.
void checkedDelete(T *ptr)
Type-checked delete operation.
Definition: CheckedDelete.h:69
Pointer-delete policy class.
Definition: PtrDelete.h:64
void operator()(Type ptr) const
Implementation of the pointer-delete policy.
Definition: PtrDelete.h:96