| Index: mojo/public/cpp/system/handle.h
|
| diff --git a/mojo/public/cpp/system/handle.h b/mojo/public/cpp/system/handle.h
|
| index 45624bc66d80c2170637c7e86d4a21b4dc0a3487..1c3b149797af15eff06de555adf7b555d4210e1a 100644
|
| --- a/mojo/public/cpp/system/handle.h
|
| +++ b/mojo/public/cpp/system/handle.h
|
| @@ -285,6 +285,11 @@ inline bool operator<(const Handle a, const Handle b) {
|
| return a.value() < b.value();
|
| }
|
|
|
| +// Comparison, so that |Handle|s can be used as keys in hash maps.
|
| +inline bool operator==(const Handle a, const Handle b) {
|
| + return a.value() == b.value();
|
| +}
|
| +
|
| } // namespace mojo
|
|
|
| #endif // MOJO_PUBLIC_CPP_SYSTEM_HANDLE_H_
|
|
|