| Index: mojo/edk/system/ports/name.h
|
| diff --git a/mojo/edk/system/ports/name.h b/mojo/edk/system/ports/name.h
|
| index b0ad0b71c825eff67b4d5c290f5a3d41eb73f209..8a9307d9cd3d118c12326e6c5f5e6d0381ad67b1 100644
|
| --- a/mojo/edk/system/ports/name.h
|
| +++ b/mojo/edk/system/ports/name.h
|
| @@ -8,6 +8,7 @@
|
| #include <stdint.h>
|
|
|
| #include <ostream>
|
| +#include <tuple>
|
|
|
| namespace mojo {
|
| namespace edk {
|
| @@ -21,9 +22,15 @@ struct Name {
|
| inline bool operator==(const Name& a, const Name& b) {
|
| return a.v1 == b.v1 && a.v2 == b.v2;
|
| }
|
| +
|
| inline bool operator!=(const Name& a, const Name& b) {
|
| return !(a == b);
|
| }
|
| +
|
| +inline bool operator<(const Name& a, const Name& b) {
|
| + return std::tie(a.v1, a.v2) < std::tie(b.v1, b.v2);
|
| +}
|
| +
|
| std::ostream& operator<<(std::ostream& stream, const Name& name);
|
|
|
| struct PortName : Name {
|
|
|