The OpenD Programming Language

RedBlackTree.toString

Formats the RedBlackTree into a sink function. For more info see std.format.formatValue. Note that this only is available when the element type can be formatted. Otherwise, the default toString from Object is used.

class RedBlackTree(T, alias less = "a < b", bool allowDuplicates = false)
const
static if(is(typeof( ())))
void
toString
(
scope void delegate
(
const(char)[]
)
sink
,
scope const ref FormatSpec!char fmt
)
if (
is(typeof(binaryFun!less(T.init, T.init)))
)

Meta