14 template <
typename Context,
typename Identities>
17 const auto& c = ctx->as<Context>();
23 template <
typename Context,
typename Identities>
26 const auto& c = ctx->as<Context>();
An expressionset can implement several different sets of identities on expressions.
expression expression_zero(const context &ctx, rat::identities ids)
Bridge.
std::shared_ptr< const detail::context_base > context
A dyn::context.
expressionset< Context > make_expressionset(const Context &ctx, rat::identities identities={})
Shorthand to expressionset constructor.
static dyn::context ctx(const driver &d)
Get the context of the driver.
std::shared_ptr< detail::expression_base > expression
expression expression_one(const context &ctx, rat::identities ids)
Bridge.
static identities ids(const driver &d)
Get the identities of the driver.
expression make_expression(const ExpSet &rs, const typename ExpSet::value_t &r)