Unique

Unique memory owner, holds one instance of type T. Don't use it to hold built-in arrays, use custom array type instead. Deallocates in destructor.

Constructors

this
this()
Undocumented in source.
this
this(Unique!(DT, Allocator) rhs)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

PtrT
alias PtrT = T
Undocumented in source.
PtrT
alias PtrT = T*
Undocumented in source.

Functions

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
move
Unique!(T, Allocator) move()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Unique!(T, Allocator) opAssign(Unique!(DT, Allocator) rhs)
Undocumented in source.
opAssign
Unique!(T, Allocator) opAssign(Unique!(DT, Allocator) rhs)
Undocumented in source.
to
Unique!(BT, Allocator) to()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

HoldsAllocator
enum HoldsAllocator;
Undocumented in source.

Properties

v
inout(T) v [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
v
inout(T) v [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
valid
bool valid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

make
Unique!(T, Allocator) make(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
make
Unique!(T, Allocator) make(Allocator alloc, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta