Rename bt2_common::UuidView::string() -> str()
[babeltrace.git] / src / cpp-common / uuid-view.hpp
index 7127c0f8ca32d7e9e778572a23d589c19f757032..5c248b616ebf43cc30065c27e2a746163fd4d36e 100644 (file)
@@ -37,7 +37,12 @@ public:
         return !(*this == other);
     }
 
-    std::string string() const
+    bool operator<(const UuidView& other) const noexcept
+    {
+        return bt_uuid_compare(_mUuid, other._mUuid) < 0;
+    }
+
+    std::string str() const
     {
         std::string s;
 
@@ -47,7 +52,7 @@ public:
         return s;
     }
 
-    static std::size_t size() noexcept
+    static constexpr std::size_t size() noexcept
     {
         return BT_UUID_LEN;
     }
This page took 0.023835 seconds and 4 git commands to generate.