The OpenD Programming Language

isUnique

Determines if a type is Unique.

Examples

import automem.unique: Unique;

static struct Point {
    int x;
    int y;
}

auto u = Unique!Point(2, 3);
static assert(isUnique!(typeof(u)));

auto p = Point(2, 3);
static assert(!isUnique!(typeof(p)));

Meta