| Index: base/file_descriptor_posix.h
|
| ===================================================================
|
| --- base/file_descriptor_posix.h (revision 45523)
|
| +++ base/file_descriptor_posix.h (working copy)
|
| @@ -24,6 +24,15 @@
|
| : fd(ifd),
|
| auto_close(iauto_close) { }
|
|
|
| + bool operator==(const FileDescriptor& other) const {
|
| + return (fd == other.fd && auto_close == other.auto_close);
|
| + }
|
| +
|
| + // A comparison operator so that we can use these as keys in a std::map.
|
| + bool operator<(const FileDescriptor& other) const {
|
| + return other.fd < fd;
|
| + }
|
| +
|
| int fd;
|
| // If true, this file descriptor should be closed after it has been used. For
|
| // example an IPC system might interpret this flag as indicating that the
|
|
|