string_id_t

Defined in header: <ixion/types.hpp>

struct string_id_t

String ID type.

All string values are converted into integer tokens. You need to call the model_context::get_string() to get the actual string value.

Public Types

using value_type = std::uint32_t

Underlying integer type of the identifier.

Public Functions

inline constexpr string_id_t() noexcept

Construct an identifier equal to empty_string_id.

inline explicit constexpr string_id_t(value_type v) noexcept

Construct an identifier from its integer value.

std::strong_ordering operator<=>(const string_id_t&) const

Order identifiers by their integer values.

bool operator==(const string_id_t&) const

Compare the integer values of two identifiers.

Public Members

value_type value

Integer value of the identifier.