Quantity.opUnary

Prefix increment/decrement operators.

They are only provided dimensionless quantities, because they are semantically equivalent to adding the dimensionless quantity 1.

  1. auto opUnary()
  2. auto opUnary()
    struct Quantity(Unit, ValueType = double)
    static if(!is(Unit.LinearBaseUnit BaseUnit))
    opUnary
    (
    string op
    )
    ()
    if (
    (
    op == "++" ||
    op == "--"
    )
    &&
    is(Unit == Dimensionless)
    &&
    is(typeof( ()))
    )
    if (
    isUnit!Unit
    )

Meta