SmartInt.toString

Get a string representation of this value.

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

Examples

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

Meta