summaryrefslogtreecommitdiff
path: root/otk/assassin.hh
diff options
context:
space:
mode:
Diffstat (limited to 'otk/assassin.hh')
-rw-r--r--otk/assassin.hh15
1 files changed, 15 insertions, 0 deletions
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<typename T>
+ inline void operator()(const T ptr) const {
+ delete ptr;
+ }
+};
+
+}
+
+#endif // __assassin_hh