Skip to content

ludus::gameplay::world::PersistentKeyLess

Ludus Wiki · API overview · Browse API

Struct

Strict weak ordering over PersistentObjectKey for the sorted binding table.
Orders lexicographically by the Instance UUID bytes, then the Object UUID bytes, so the ordering is total and independent of host endianness. The comparator is empty and nonthrowing, as FoundationContainers SortedMap requires. It lives at the World boundary rather than in the identity value header, which stays free of ordering policy.

Declared in modules/gameplay/world/include/ludus/gameplay/world/binding_table.h

#include <ludus/gameplay/world/binding_table.h>
struct ludus::gameplay::world::PersistentKeyLess final

Methods

operator()

bool ludus::gameplay::world::PersistentKeyLess::operator()(const foundation::identity::PersistentObjectKey &left, const foundation::identity::PersistentObjectKey &right) const noexcept
True when left orders before right by (Instance bytes, then Object bytes).

Related types: foundation::identity::PersistentObjectKey

Declared in modules/gameplay/world/include/ludus/gameplay/world/binding_table.h