Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 5759b0ad292b451b10840668c77abd0f788d953c..adc316ad25c047d9cc55b2b67a4ccc04448dee69 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -143,6 +143,16 @@ static int PointerValueCompare(const T* a, const T* b) { |
} |
+// Compare function to compare the object pointer value of two |
+// handlified objects. The handles are passed as pointers to the |
+// handles. |
+template<typename T> class Handle; // Forward declaration. |
+template <typename T> |
+static int HandleObjectPointerCompare(const Handle<T>* a, const Handle<T>* b) { |
+ return Compare<T*>(*(*a), *(*b)); |
+} |
+ |
+ |
// Returns the smallest power of two which is >= x. If you pass in a |
// number that is already a power of two, it is returned as is. |
// Implementation is from "Hacker's Delight" by Henry S. Warren, Jr., |