The OpenD Programming Language

Unique.this

The allocator is global, so no need to pass it in to the constructor

  1. this(Args args)
    struct Unique(UniqueType, Allocator = typeof(theAllocator()), Flag!"supportGC" supportGC = gcExists ? Flag!"supportGC".yes : Flag!"supportGC".no)
    static if(isGlobal)
    this
    (
    Args...
    )
    (
    auto ref Args args
    )
    if (
    isAllocator!Allocator
    )
  2. this(Allocator allocator, Args args)
  3. this(Unique!(T, Allocator) other)

Meta