From d1845448c3f54f2b0003ac396422a3c826e95724 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 10 May 2024 22:10:14 -0500 Subject: [PATCH] [ox/std] Add == and != operators to UUID --- deps/ox/src/ox/std/uuid.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deps/ox/src/ox/std/uuid.hpp b/deps/ox/src/ox/std/uuid.hpp index d2d783b4..f4a7a899 100644 --- a/deps/ox/src/ox/std/uuid.hpp +++ b/deps/ox/src/ox/std/uuid.hpp @@ -146,6 +146,14 @@ class UUID { return out; } + constexpr bool operator==(UUID const&o) const noexcept { + return m_value == o.m_value; + } + + constexpr bool operator!=(UUID const&o) const noexcept { + return !operator==(o); + } + [[nodiscard]] constexpr ox::Error toString(Writer_c auto &writer) const noexcept { auto valueI = 0u;