isPureData

isn't array and has no unshared aliasings

template isPureData (
T
) {}

Members

Manifest constants

isPureData
enum isPureData;
Undocumented in source.

Examples

static assert(  isPureData!int );
static assert(  isPureData!float );
static assert(  isPureData!creal );

static struct Vec { float x,y,z; }
static assert(  isPureData!Vec );

static struct Arr { int[3] data; }
static assert(  isPureData!Arr );

static struct Some { float f; Vec v; Arr a; }
static assert(  isPureData!Some );

static assert( !isPureData!string );

static struct Bad { int[] data; }
static assert( !isPureData!Bad );

Meta