commit | 57703b8e8af6da7c342ec0775afdab48cc01fad7 | [log] [tgz] |
---|---|---|
author | Alex Dale <sigquit@google.com> | Sat Aug 04 00:33:17 2018 |
committer | chrome-bot <chrome-bot@chromium.org> | Thu Aug 09 03:46:13 2018 |
tree | 9bc5882efd5a7bbf21b4e51e7e25f022541eb889 | |
parent | bfcfdaaab55b79b6fc120e2dbf52c6ce75d1395c [diff] |
shill: IP Address less than operator. This change introduces a less than operator for both ByteString and IPAddress. The ByteString less than operator is based on the static IsLessThan method. IPAddress uses the ByteString less than operator to implement its own. The IPAddress less than operator is to allow binary searching of IP address with some of the C++ standard library containers. TEST=unittest BUG=chromium:863260 Change-Id: I8a689d12d16440c0744e882bef0186b490fa5bb8 Reviewed-on: https://chromium-review.googlesource.com/1162973 Commit-Ready: Alex Dale <sigquit@google.com> Tested-by: Alex Dale <sigquit@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>