The index of the first occurrence of T in L.
static assert(staticIndexOf!(int) == -1); static assert(staticIndexOf!(int, int) == 0); static assert(staticIndexOf!(int, float, double, int, real) == 2); static assert(staticIndexOf!(3, () {}, uint, 5, 3) == 3);
Returns the index of the first occurrence of T in L. -1 is returned if T is not found.