[ox/std] Add == and != operators to UUID
This commit is contained in:
parent
c4f6ee0026
commit
d1845448c3
8
deps/ox/src/ox/std/uuid.hpp
vendored
8
deps/ox/src/ox/std/uuid.hpp
vendored
@ -146,6 +146,14 @@ class UUID {
|
|||||||
return out;
|
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]]
|
[[nodiscard]]
|
||||||
constexpr ox::Error toString(Writer_c auto &writer) const noexcept {
|
constexpr ox::Error toString(Writer_c auto &writer) const noexcept {
|
||||||
auto valueI = 0u;
|
auto valueI = 0u;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user