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
Undocumented in source.

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.
opCast
U opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
U opCast()
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.

Manifest constants

ElemSize
enum ElemSize;
Undocumented in source.
NOGC
enum NOGC;
Undocumented in source.
isRefCounted
enum isRefCounted;
Undocumented in source.
isUnique
enum isUnique;
Undocumented in source.

Mixins

__anonymous
mixin Embed!(m_object, false)
Undocumented in source.

Properties

isEmpty
bool isEmpty [@property getter]

Returns whether the resource exists.

Meta