TaggedAlgebraic.opBinaryRight

Enables the use of binary operators with the stored value.

  1. auto ref opBinaryRight(T other)
  2. auto ref opBinaryRight(T other)
    struct TaggedAlgebraic(U)
    ref
    opBinaryRight
    (
    string op
    T
    this TA
    )
    (
    auto ref T other
    )
    if (
    hasOp!(TA, OpKind.binaryRight, op, T) &&
    isInstanceOf!(TaggedAlgebraic, T)
    &&
    !hasOp!(T, OpKind.opBinary, op, TA)
    )
    if (
    is(U == union) ||
    is(U == struct)
    ||
    is(U == enum)
    )

Meta