summaryrefslogtreecommitdiffstats
path: root/tools/memory_watcher
diff options
context:
space:
mode:
Diffstat (limited to 'tools/memory_watcher')
-rw-r--r--tools/memory_watcher/memory_hook.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/memory_watcher/memory_hook.h b/tools/memory_watcher/memory_hook.h
index 06a50ef..4227edb 100644
--- a/tools/memory_watcher/memory_hook.h
+++ b/tools/memory_watcher/memory_hook.h
@@ -61,6 +61,19 @@ class PrivateHookAllocator {
PrivateHookAllocator(const PrivateHookAllocator<U>&) {}
};
+template<class T, class U> inline
+bool operator==(const PrivateHookAllocator<T>&,
+ const PrivateHookAllocator<U>&) {
+ return (true);
+}
+
+template<class T, class U> inline
+bool operator!=(const PrivateHookAllocator<T>& left,
+ const PrivateHookAllocator<U>& right) {
+ return (!(left == right));
+}
+
+
// Classes which monitor memory from these hooks implement
// the MemoryObserver interface.
class MemoryObserver {