diff -r ae7f7fbb9cda -r 07e65a4c6611 src/basics.h --- a/src/basics.h Mon Jul 04 15:37:22 2022 +0300 +++ b/src/basics.h Mon Jul 04 19:53:13 2022 +0300 @@ -60,6 +60,17 @@ constexpr auto operator<=>(const ModelId&) const = default; }; +struct ElementId +{ + std::int32_t value; + constexpr auto operator<=>(const ElementId& other) const = default; +}; + +constexpr auto qHash(ElementId id) +{ + return qHash(id.value); +} + //! \brief count the amount of elements in a basic array template constexpr int countof(T(&)[N])