Unique

Undocumented in source.

Constructors

this
this(TR p)

Constructor that takes an rvalue. It will ensure uniqueness, as long as the rvalue isn't just a view on an lvalue (e.g., a cast). Typical usage:

this
this(TR p)

Constructor that takes an lvalue. It nulls its source. The nulling will ensure uniqueness as long as there are no previous aliases to the source.

this
this(Unique!U u)

Constructor that takes a Unique of a type that is convertible to our type.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

Postblit operator is undefined to prevent the cloning of Unique objects.

Members

Aliases

TR
alias TR = RefTypeOf!T

Represents a reference to T. Resolves to T* if T is a value type.

Functions

drop
void drop()
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
get
TR get()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(TR p)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(Unique!U u)

Transfer ownership from a Unique of a type that is convertible to our type.

opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opDot
TR opDot()

Forwards member access to contents.

opDot
const(TR) opDot()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
TR opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
const(TR) opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
release
TR release()

Transfer ownership to a Unique rvalue. Nullifies the current contents.

Properties

isEmpty
bool isEmpty [@property getter]

Returns whether the resource exists.

Meta