Add ecs::handle comparison operators

This commit is contained in:
Nikita Lisitsa 2024-01-25 22:27:24 +03:00
parent f5bd285336
commit 4b1d513cd6

View file

@ -11,6 +11,9 @@ namespace psemek::ecs
{
detail::entity_id id;
detail::entity_epoch epoch;
friend bool operator == (handle const &, handle const &) = default;
friend auto operator <=> (handle const &, handle const &) = default;
};
inline std::ostream & operator << (std::ostream & out, handle const & handle)