Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
policies
Deallocate.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_POLICIES_DEALLOCATE_H_
36
#define _BLAZE_UTIL_POLICIES_DEALLOCATE_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/Memory.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
64
struct
Deallocate
65
{
66
//**Utility functions***************************************************************************
69
template
<
typename
Type >
70
inline
void
operator()
(
Type
ptr )
const
;
72
//**********************************************************************************************
73
};
74
//*************************************************************************************************
75
76
77
78
79
//=================================================================================================
80
//
81
// UTILITY FUNCTIONS
82
//
83
//=================================================================================================
84
85
//*************************************************************************************************
96
template
<
typename
Type >
97
inline
void
Deallocate::operator()
(
Type
ptr )
const
98
{
99
deallocate
( ptr );
100
}
101
//*************************************************************************************************
102
103
}
// namespace blaze
104
105
#endif
Memory.h
Header file for memory allocation and deallocation functionality.
blaze::Type
blaze::deallocate
void deallocate(T *address) noexcept
Deallocation of memory for built-in data types.
Definition
Memory.h:230
blaze::Deallocate
Deallocate policy class.
Definition
Deallocate.h:65
blaze::Deallocate::operator()
void operator()(Type ptr) const
Implementation of the deallocate deletion policy.
Definition
Deallocate.h:97
Generated by
1.18.0