OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "dbus/object_path.h" |
| 6 |
| 7 #include <ostream> |
| 8 #include <string> |
| 9 |
| 10 namespace dbus { |
| 11 |
| 12 bool operator<(const ObjectPath& lhs, const ObjectPath& rhs) { |
| 13 return lhs.value() < rhs.value(); |
| 14 } |
| 15 |
| 16 bool operator==(const ObjectPath& lhs, const ObjectPath& rhs) { |
| 17 return lhs.value() == rhs.value(); |
| 18 } |
| 19 |
| 20 bool operator!=(const ObjectPath& lhs, const ObjectPath& rhs) { |
| 21 return lhs.value() != rhs.value(); |
| 22 } |
| 23 |
| 24 std::ostream& operator<<(std::ostream& os, const ObjectPath& object_path) { |
| 25 os << object_path.value(); |
| 26 return os; |
| 27 } |
| 28 |
| 29 } // namespace dbus |
OLD | NEW |