ElementType

Returns the element type of the range R.

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 $(D_KEYWORD void).

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

Members

Aliases

ElementType
alias ElementType = U
Undocumented in source.
ElementType
alias ElementType = ReturnType!((R r) => r.front())
Undocumented in source.
ElementType
alias ElementType = void
Undocumented in source.

Parameters

R

Range type.

Return Value

Element type of the range R.

Meta