Unique

Undocumented in source.

Constructors

this
this(Args args)

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

this
this(Allocator allocator, Args args)

Non-singleton allocator, must be passed in

this
this(Unique!(T, Allocator) other)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

Pointer
alias Pointer = Type
Undocumented in source.
Pointer
alias Pointer = Type*
Undocumented in source.

Functions

allocator
Allocator allocator()
Undocumented in source. Be warned that the author may not have intended to support it.
get
inout(Pointer) get()

Gets the owned pointer. Use with caution.

opAssign
void opAssign(Unique!(T, Allocator) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()

"Truthiness" cast

release
Pointer release()
Undocumented in source. Be warned that the author may not have intended to support it.
unique
Unique unique()

Releases ownership and transfers it to the returned Unique object.

Manifest constants

isGlobal
enum isGlobal;
Undocumented in source.
isSingleton
enum isSingleton;
Undocumented in source.
isTheAllocator
enum isTheAllocator;
Undocumented in source.

Mixins

__anonymous
mixin Proxy!_object
Undocumented in source.

Static functions

construct
typeof(this) construct(Args args)

Factory method so can construct with zero args.

construct
typeof(this) construct(Allocator allocator, Args args)

Factory method. Not necessary with non-global allocator but included for symmetry.

Meta