aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/util/string_ref.cc
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-05 10:18:05 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-05 10:18:05 -0700
commitb0f3bf16cee1d893fc0414fcfe1060baac4eaa9b (patch)
tree747298bf60f8a0b1c519a33d6084fad42fc192de /src/cpp/util/string_ref.cc
parent350835a9566a4b56bfd409108ec235ef2424b630 (diff)
parenta9154a36fbc019b87f4d62ce16b346f3d44ec2de (diff)
Resolved merge conflicts with master
Diffstat (limited to 'src/cpp/util/string_ref.cc')
-rw-r--r--src/cpp/util/string_ref.cc24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/cpp/util/string_ref.cc b/src/cpp/util/string_ref.cc
index c42033f61f..604134fa9d 100644
--- a/src/cpp/util/string_ref.cc
+++ b/src/cpp/util/string_ref.cc
@@ -85,29 +85,17 @@ size_t string_ref::find(char c) const {
return it == cend() ? npos : std::distance(cbegin(), it);
}
-bool operator==(string_ref x, string_ref y) {
- return x.compare(y) == 0;
-}
+bool operator==(string_ref x, string_ref y) { return x.compare(y) == 0; }
-bool operator!=(string_ref x, string_ref y) {
- return x.compare(y) != 0;
-}
+bool operator!=(string_ref x, string_ref y) { return x.compare(y) != 0; }
-bool operator<(string_ref x, string_ref y) {
- return x.compare(y) < 0;
-}
+bool operator<(string_ref x, string_ref y) { return x.compare(y) < 0; }
-bool operator<=(string_ref x, string_ref y) {
- return x.compare(y) <= 0;
-}
+bool operator<=(string_ref x, string_ref y) { return x.compare(y) <= 0; }
-bool operator>(string_ref x, string_ref y) {
- return x.compare(y) > 0;
-}
+bool operator>(string_ref x, string_ref y) { return x.compare(y) > 0; }
-bool operator>=(string_ref x, string_ref y) {
- return x.compare(y) >= 0;
-}
+bool operator>=(string_ref x, string_ref y) { return x.compare(y) >= 0; }
std::ostream& operator<<(std::ostream& out, const string_ref& string) {
return out << grpc::string(string.begin(), string.end());