20 return static_cast<int8_t
>(t);
constexpr bool operator<=(PrimitiveType a, PrimitiveType b)
constexpr bool operator>=(PrimitiveType a, PrimitiveType b)
constexpr bool operator!=(PrimitiveType a, PrimitiveType b)
constexpr bool operator==(PrimitiveType a, PrimitiveType b)
std::string_view primitive_type_name(PrimitiveType t)
constexpr PrimitiveType get_primitive_type_from_id(int8_t id)
Get the primitive type corresponding to its unique integer id.
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.
int8_t get_max_primitive_type_id(const std::vector< PrimitiveType > &primitive_types)
Get the maximum id for a list of primitive types.
constexpr PrimitiveType operator-(PrimitiveType pt, int8_t n)
constexpr bool operator<(PrimitiveType a, PrimitiveType b)
constexpr PrimitiveType operator+(PrimitiveType pt, int8_t n)
constexpr bool operator>(PrimitiveType a, PrimitiveType b)