15enum class ExpressionType : uint8_t {
32struct std::formatter<slp::ExpressionType> {
37 constexpr auto parse(std::format_parse_context& ctx) {
38 return m_underlying.parse(ctx);
47 template <
typename FmtContext>
48 auto format(
const slp::ExpressionType& type, FmtContext& ctx)
const {
49 using enum slp::ExpressionType;
53 return m_underlying.format(
"none", ctx);
55 return m_underlying.format(
"constant", ctx);
57 return m_underlying.format(
"linear", ctx);
59 return m_underlying.format(
"quadratic", ctx);
61 return m_underlying.format(
"nonlinear", ctx);
68 std::formatter<const char*> m_underlying;