X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fcpp-common%2Fuuid-view.hpp;h=7816f25ea9135e24404a3f375453663fe67170bb;hb=c65e7e808b2d7724d6ee0b2727f8e283d9894aa2;hp=6fae4430da305de1329aad8cfe4cd2a2ca908ad3;hpb=1915d888a00b09c741485b2a1638b549a6ed529f;p=babeltrace.git diff --git a/src/cpp-common/uuid-view.hpp b/src/cpp-common/uuid-view.hpp index 6fae4430..7816f25e 100644 --- a/src/cpp-common/uuid-view.hpp +++ b/src/cpp-common/uuid-view.hpp @@ -37,6 +37,11 @@ public: return !(*this == other); } + bool operator<(const UuidView& other) const noexcept + { + return bt_uuid_compare(_mUuid, other._mUuid) < 0; + } + std::string string() const { std::string s;