]> Dogcows Code - chaz/openbox/blobdiff - otk/assassin.hh
move Rect and PointerAssassin into the toolkit
[chaz/openbox] / otk / assassin.hh
diff --git a/otk/assassin.hh b/otk/assassin.hh
new file mode 100644 (file)
index 0000000..89e9815
--- /dev/null
@@ -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
This page took 0.024058 seconds and 4 git commands to generate.