23 constexpr bool valid() const noexcept {
24 return value != 0 &&
value != std::numeric_limits<std::uint64_t>::max();
33template <>
struct std::hash<
pulp::timeline::ItemId> {
36 return std::hash<std::uint64_t>{}(
id.value);
Definition program_compiler.hpp:18
Definition analyzer_provider.hpp:12
Nonzero monotonic identity for a Timeline-owned object.
Definition item_id.hpp:19
constexpr auto operator<=>(const ItemId &) const =default
constexpr bool valid() const noexcept
Returns whether this value names an object rather than a sentinel.
Definition item_id.hpp:23
std::uint64_t value
Definition item_id.hpp:20
std::size_t operator()(pulp::timeline::ItemId id) const noexcept
Hashes the complete 64-bit identity value.
Definition item_id.hpp:35