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.

Mixed In Members

From mixin Embed!(m_object, false)

TR
alias TR = typeof(OBJ)
Undocumented in source.
T
alias T = typeof(*OBJ)
Undocumented in source.
T
alias T = TR
Undocumented in source.
fallthrough
const(T) fallthrough [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fallthrough
T fallthrough [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
const(T) opUnary [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
release
TR release [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
auto opBinaryRight(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(U other)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(U other)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opSliceAssign
void opSliceAssign(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opDollar
size_t opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
auto opBinary(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(U arg1, V arg2)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
auto ref opIndex(U args)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
bool opBinaryRight(U e)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta