isManifestAssignable

Returns true if the argument is a manifest constant, built-in type field, or immutable static

template isManifestAssignable (
alias sym
) {}

Members

Manifest constants

isManifestAssignable
enum isManifestAssignable;
Undocumented in source.

Examples

struct A {
    int m;
    static immutable int sim = 1;
    enum e = 1;
}

static assert(!isManifestAssignable!(A.m));
static assert( isManifestAssignable!(A.e));
static assert( isManifestAssignable!(A.sim));
static assert(!isManifestAssignable!int);

Meta