areStrictlyOrdered

Return true if all arguments args are strictly ordered, that is args[0] < args[1] < args[2] < ... .

TODO: CT-variant

bool
areStrictlyOrdered
(
Ts...
)
(
Ts args
)
if (
args.length >= 2 &&
)

Examples

static assert(!__traits(compiles, areStrictlyOrdered()));
static assert(!__traits(compiles, areStrictlyOrdered(1)));
assert(areStrictlyOrdered(1, 2, 3));
assert(!areStrictlyOrdered(1, 3, 2));
assert(!areStrictlyOrdered(1, 2, 2));
assert(areStrictlyOrdered('a', 'b', 'c'));

See Also

http://forum.dlang.org/thread/wzsdhzycwqyrvqmmttix@forum.dlang.org?page=2#post-vprvhifglfegnlvzqmjj:40forum.dlang.org

Meta