00001 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- 00002 #ifndef __assassin_hh 00003 #define __assassin_hh 00004 00005 namespace otk { 00006 00007 struct PointerAssassin { 00008 template<typename T> 00009 inline void operator()(const T ptr) const { 00010 delete ptr; 00011 } 00012 }; 00013 00014 } 00015 00016 #endif // __assassin_hh