12 [[nodiscard]]
constexpr AutomaticID() : id(0) {}
14 [[nodiscard]]
constexpr AutomaticID(T x) : id(x) {}
16 [[nodiscard]]
constexpr operator T()
const {
return id; }
18 [[nodiscard]]
inline bool operator==(AutomaticID
const& other)
const {
return id == other.id; }
20 [[nodiscard]]
inline bool operator==(T
const& other)
const {
return id == other; }
22 [[nodiscard]]
inline std::strong_ordering operator<=>(AutomaticID
const& other)
const {
return id <=> other.id; }
24 [[nodiscard]]
inline std::strong_ordering operator<=>(T
const& other)
const {
return id <=> other; }