Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
policies
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
43
#include <
blaze/util/CheckedDelete.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
63
struct
ArrayDelete
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
CheckedDelete.h
Type-checked delete operations.
blaze::Type
blaze::checkedArrayDelete
void checkedArrayDelete(T *ptr)
Type-checked delete[] operation.
Definition
CheckedDelete.h:91
blaze::ArrayDelete
Array-delete policy class.
Definition
ArrayDelete.h:64
blaze::ArrayDelete::operator()
void operator()(Type ptr) const
Implementation of the array-delete policy.
Definition
ArrayDelete.h:96
Generated by
1.18.0