14 template <
typename Context,
typename Identities>
17 const auto& c = ctx->
as<Context>();
19 return {
rs, rs.one()};
23 template <
typename Context,
typename Identities>
26 const auto& c = ctx->
as<Context>();
28 return {
rs, rs.zero()};
auto & as()
Downcast to the exact type.
expression expression_one(const context &ctx, identities ids)
Bridge.
expression expression_zero(const context &ctx, identities ids)
Bridge.
Template-less root for contexts.
auto make_expressionset(const context< LabelSet, WeightSet > &ctx, rat::identities ids={}) -> expressionset< context< LabelSet, WeightSet >>
Shorthand to expressionset constructor.
static identities ids(const driver &d)
Get the identities of the driver.
value_impl< detail::expression_tag > expression