16 lines
271 B
C++
16 lines
271 B
C++
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
|
#ifndef __assassin_hh
|
|
#define __assassin_hh
|
|
|
|
namespace otk {
|
|
|
|
struct PointerAssassin {
|
|
template<typename T>
|
|
inline void operator()(const T ptr) const {
|
|
delete ptr;
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __assassin_hh
|