Commit 0852c4cc authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS MultiDevice] Add cryptauth::RemoteDeviceRef::operator!=.

Bug: 824568
Change-Id: Ia0c761353aff3ca86848e36ec90f85d6a7ff7373
Reviewed-on: https://chromium-review.googlesource.com/1112953Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570091}
parent f650c5e9
......@@ -60,6 +60,10 @@ bool RemoteDeviceRef::operator==(const RemoteDeviceRef& other) const {
return *remote_device_ == *other.remote_device_;
}
bool RemoteDeviceRef::operator!=(const RemoteDeviceRef& other) const {
return !(*this == other);
}
bool RemoteDeviceRef::operator<(const RemoteDeviceRef& other) const {
return *remote_device_ < *other.remote_device_;
}
......
......@@ -83,9 +83,7 @@ class RemoteDeviceRef {
std::string GetTruncatedDeviceIdForLogs() const;
bool operator==(const RemoteDeviceRef& other) const;
// This function is necessary in order to use |RemoteDeviceRef| as a key of a
// std::map.
bool operator!=(const RemoteDeviceRef& other) const;
bool operator<(const RemoteDeviceRef& other) const;
private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment