Reverse

Takes an AliasSeq and result in an AliasSeq where the order of the elements has been reversed.

template Reverse (
Args...
) {}

Examples

static assert(is(Reverse!(int, byte, long, string) ==
                 AliasSeq!(string, long, byte, int)));

alias Types = AliasSeq!(int, long, long, int, float,
                        ubyte, short, ushort, uint);
static assert(is(Reverse!Types == AliasSeq!(uint, ushort, short, ubyte,
                                            float, int, long, long, int)));

static assert(is(Reverse!() == AliasSeq!()));

Meta