SmartInt.toString

Get a string representation of this value.

  1. string toString()
    struct SmartInt(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
    string
    toString
    const @safe
    (
    )
    if (
    isIntegral!N &&
    isUnqual!N
    )
  2. void toString(Writer w, FormatSpec!Char fmt = (FormatSpec!Char).init)

Examples

import checkedint.throws : smartInt; // use IntFlagPolicy.throws
assert(smartInt(-753).toString() == "-753");

Meta