All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ArrayDelete.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_POLICIES_ARRAYDELETE_H_
23 #define _BLAZE_UTIL_POLICIES_ARRAYDELETE_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <boost/checked_delete.hpp>
31 
32 
33 namespace blaze {
34 
35 //=================================================================================================
36 //
37 // CLASS DEFINITION
38 //
39 //=================================================================================================
40 
41 //*************************************************************************************************
51 {
52  //**Utility functions***************************************************************************
55  template< typename Type >
56  inline void operator()( Type ptr ) const;
58  //**********************************************************************************************
59 };
60 //*************************************************************************************************
61 
62 
63 
64 
65 //=================================================================================================
66 //
67 // UTILITY FUNCTIONS
68 //
69 //=================================================================================================
70 
71 //*************************************************************************************************
82 template< typename Type >
83 inline void ArrayDelete::operator()( Type ptr ) const
84 {
85  boost::checked_array_delete( ptr );
86 }
87 //*************************************************************************************************
88 
89 } // namespace blaze
90 
91 #endif