alias E = string; alias I = int; alias R = typeof(["a", "b"]); static assert(isIterableOf!(R, E)); static assert(isIterableOfSomeString!(R)); static assert(!isIterableOf!(R, I));
See Implementation