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
Header file for memory allocation and deallocation functionality.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
void operator()(Type ptr) const
Implementation of the deallocate deletion policy.
Definition: Deallocate.h:97
EnableIf_< IsBuiltin< T > > deallocate(T *address) noexcept
Deallocation of memory for built-in data types.
Definition: Memory.h:230
Deallocate policy class.The Deallocate deletion policy is the according deletion policy for arrays al...
Definition: Deallocate.h:64