]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/ext/new_allocator.h
malloc_allocator.h: Add operators ==, !=.
[thirdparty/gcc.git] / libstdc++-v3 / include / ext / new_allocator.h
index 4fee84f5f7cdaea9e3da280c3c02547a5ca4378d..1b0b4f6107962cb5c82c296f8a9b28b0267e57af 100644 (file)
@@ -98,6 +98,16 @@ namespace __gnu_cxx
       void 
       destroy(pointer __p) { __p->~_Tp(); }
     };
+
+  template<typename _Tp>
+    inline bool
+    operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
+    { return true; }
+  
+  template<typename _Tp>
+    inline bool
+    operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
+    { return false; }
 } // namespace __gnu_cxx
 
 #endif