/Users/eddyxu/work/quiplib/ace/srcs/Functors.h

Go to the documentation of this file.
00001 //-*- C++ -*-
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 } // qlib
00041 
00042 #endif /* QLIB_ACE_FUNCTORS_H */
00043 
00044 
00045 

Generated on Fri Jun 8 22:49:19 2007 for qlib::ace by  doxygen 1.5.1