var.isNativeArrayOf

bool isNativeArrayOf(E)() if (_nativeKindOf!E != ElementType.NONE) scope const nothrow @nogc pure @safe

True when this value is a native array of element type E.

Parameters

Eone of the whitelisted native element types (unqualified).

Examples

var dense = typedArray([1L, 2L]);
assert(dense.isNativeArrayOf!long);
assert(!dense.isNativeArrayOf!int);