From 37e56007680a6664967e0e71ac52981654def6a6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Nov 2002 10:38:14 +0000 Subject: move Rect and PointerAssassin into the toolkit --- otk/assassin.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 otk/assassin.hh (limited to 'otk/assassin.hh') diff --git a/otk/assassin.hh b/otk/assassin.hh new file mode 100644 index 00000000..89e98153 --- /dev/null +++ b/otk/assassin.hh @@ -0,0 +1,15 @@ +#ifndef __assassin_hh +#define __assassin_hh + +namespace otk { + +struct PointerAssassin { + template + inline void operator()(const T ptr) const { + delete ptr; + } +}; + +} + +#endif // __assassin_hh -- cgit v1.2.3