00001
00002
00012
00013
00014
00015 #ifndef QLIB_ACE_FUNCTORS_H
00016 #define QLIB_ACE_FUNCTORS_H
00017
00018
00019 namespace qlib {
00020
00021 namespace ace {
00022
00024 struct Delete_Ptr {
00025 template<typename T>
00026 void operator() (const T * ptr) const {
00027 delete ptr;
00028 }
00029 };
00030
00032 struct Delete_Second_Ptr {
00033 template< typename P>
00034 void operator() (const P & ptr) const {
00035 delete ptr.second;
00036 }
00037 };
00038 }
00039
00040 }
00041
00042 #endif
00043
00044
00045