ArrayElementType

Returns the element type of an array.

For ranges, see also $(STDREF range, ElementEncodingType).

alias ArrayElementType(T : T[]) = T

Examples

t
{
	static assert( is(ArrayElementType!(int[]) == int));
	static assert(is(ArrayElementType!(int[7][8]) == int[7]));
	static assert(is(ArrayElementType!string == immutable(char))

Meta