Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
policies
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
43
#include <
blaze/util/CheckedDelete.h
>
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
CheckedDelete.h
Type-checked delete operations.
blaze::Type
blaze::checkedDelete
void checkedDelete(T *ptr)
Type-checked delete operation.
Definition
CheckedDelete.h:69
blaze::PtrDelete
Pointer-delete policy class.
Definition
PtrDelete.h:64
blaze::PtrDelete::operator()
void operator()(Type ptr) const
Implementation of the pointer-delete policy.
Definition
PtrDelete.h:96
Generated by
1.18.0