Alias ElementType

Returns the element type of the range R.

alias ElementType(R) = U;

Element type is the return type of such primitives like R.front and (D_INLINECODE R.back) or the array base type. If R is not a range, its element type is void.

If R is a string, ElementType doesn't distinguish between narrow and wide strings, it just returns the base type of the underlying array (char, wchar or dchar).

Parameters

NameDescription
R Range type.

Returns

Element type of the range R.