import phobos.sys.traits : isDynamicArray, isPointer, isUnsignedInteger; alias Types = AliasSeq!(string, int, int[], bool[], ulong, double, ubyte); static assert(is(Filter!(isDynamicArray, Types) == AliasSeq!(string, int[], bool[]))); static assert(is(Filter!(isUnsignedInteger, Types) == AliasSeq!(ulong, ubyte))); static assert(is(Filter!(isPointer, Types) == AliasSeq!()));
Filters an AliasSeq using the given template predicate.
The result is an AliasSeq that contains only the elements which satisfy the predicate.