Unique

A unique pointer. Only one pointer to a target may exist at a time. Pointers can be explicitly moved, but not copied. +

Constructors

this
this(T t)

Assign a payload to this unique pointer

this
this(Args args)

Allocate the payload

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Alias This

payload

Members

Functions

borrow
auto borrow()

Borrow the pointer

move
Unique move()

Move to a new instance

opCast
auto opCast()

Check if this unique instance has a payload

Properties

hasPayload
bool hasPayload [@property getter]

Check if this unique instance has a payload

Variables

payload
T payload;

Payload

Meta