currency.opEquals

Can check equality with money amounts of the same concurrency and decimal places.

  1. bool opEquals(OT other)
    struct currency(string currency_name, int dec_places = 4, roundingMode rmode = roundingMode.HALF_UP)
    const
    bool
    opEquals
    (
    OT
    )
    (
    auto ref const OT other
    )
    if (
    isCurrency!OT &&
    other.__currency == currency_name
    &&
    other.__dec_places == dec_places
    )
  2. bool opEquals(T other)

Meta