SafeInt.toString

Get a string representation of this value.

  1. string toString()
    struct SafeInt(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 : safeInt; // use IntFlagPolicy.throws
assert(safeInt(-753).toString() == "-753");

Meta