Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::SortEntityIdCond Struct Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ operator()()

GAIA_NODISCARD constexpr bool gaia::ecs::SortEntityIdCond::operator() ( Entity  lhs,
Entity  rhs 
) const
inlineconstexprnoexcept
Parameters
lhsLeft entity.
rhsRight entity.
Returns
True when lhs has a smaller id than rhs.

The documentation for this struct was generated from the following file: