Struct Id

Struct Documentation

struct Id

Game-defined semantic identifier.

A game’s enums can be converted explicitly at its boundary.

Public Functions

inline explicit constexpr Id(std::uint32_t id)

Explicitly wrap a game semantic value without assigning global ownership or reserving subranges.

constexpr bool operator==(const Id&) const = default

Compare the semantic numeric values; context namespace is supplied separately.

Public Members

std::uint32_t value

Application semantic value; all uint32 values, including zero, are available.