isUnique

Determines if a type is Unique.

Members

Manifest constants

isUnique
enum isUnique;
Undocumented in source.

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