Blaze 3.9
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
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
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//*************************************************************************************************
96template< typename Type >
97inline void Deallocate::operator()( Type ptr ) const
98{
99 deallocate( ptr );
100}
101//*************************************************************************************************
102
103} // namespace blaze
104
105#endif
Header file for memory allocation and deallocation functionality.
void deallocate(T *address) noexcept
Deallocation of memory for built-in data types.
Definition: Memory.h:230
Deallocate policy class.
Definition: Deallocate.h:65
void operator()(Type ptr) const
Implementation of the deallocate deletion policy.
Definition: Deallocate.h:97