hasShape

enum bool hasShape(R);

Return Value

true if R has a shape member that returns an static array type of size_tN.

Examples

static assert(hasShape!(char[]));
static assert(hasShape!(int[]));
static assert(hasShape!(inout(int)[]));

struct B { size_t length() const { return 0; } }
struct C { @property size_t length() const { return 0; } }
static assert(hasShape!(B));
static assert(hasShape!(C));

Meta