![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Orders entities by id only, ignoring the generation and the other packed bits. Sorts that need this order share the type, so each translation unit instantiates the sort once. Use core::is_smaller<Entity> to order by the full value instead. More...
#include <id.h>
Public Member Functions | |
| GAIA_NODISCARD constexpr bool | operator() (Entity lhs, Entity rhs) const noexcept |
Orders entities by id only, ignoring the generation and the other packed bits. Sorts that need this order share the type, so each translation unit instantiates the sort once. Use core::is_smaller<Entity> to order by the full value instead.
|
inlineconstexprnoexcept |
| lhs | Left entity. |
| rhs | Right entity. |