Typedef.toString

Convert wrapped value to a human readable string

  1. string toString()
  2. void toString(W writer, FormatSpec!char fmt)
    struct Typedef(T, T init = T.init, string cookie = null)
    void
    toString
    (
    this T
    W
    )
    (
    ref W writer
    ,
    scope const ref FormatSpec!char fmt
    )
    if (
    isOutputRange!(W, char)
    )

Examples

import std.conv : to;

int i = 123;
auto td = Typedef!int(i);
assert(i.to!string == td.to!string);

Meta

Suggestion Box / Bug Report