SmartInt.toString

Get a string representation of this value.

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

Examples

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

Meta