UniqueArray

Undocumented in source.

Constructors

this
this(size_t size)

The allocator is global, so no need to pass it in to the constructor

this
this(size_t size, Type init)
Undocumented in source.
this
this(R range)
Undocumented in source.
this
this(Allocator allocator)

Non-singleton allocator, must be passed in

this
this(Allocator allocator, size_t size)
Undocumented in source.
this
this(Allocator allocator, size_t size, Type init)
Undocumented in source.
this
this(Allocator allocator, R range)
Undocumented in source.
this
this(UniqueArray!(T, Allocator) other)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

move
alias move = unique
Undocumented in source.

Functions

dup
UniqueArray dup()
Undocumented in source. Be warned that the author may not have intended to support it.
dup
UniqueArray dup()
Undocumented in source. Be warned that the author may not have intended to support it.
dup
UniqueArray dup()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(UniqueArray!(T, Allocator) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(Type[] other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
UniqueArray opBinary(UniqueArray other)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()

"Truthiness" cast

opDollar
long opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(Type) opIndex(long i)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Type other)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Type[] other)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(UniqueArray other)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
const(Type)[] opSlice(long i, long j)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
const(Type)[] opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
const(Type[]) opUnary()

Dereference. const since this otherwise could be used to try and append to the array, which would not be nice

ptr
inout(Type)* ptr()

Returns a pointer to the underlying data. @system

reserve
void reserve(long size)

Reserves memory to prevent too many allocations

unique
UniqueArray unique()

Releases ownership and transfers it to the returned Unique object.

Manifest constants

isGlobal
enum isGlobal;
Undocumented in source.
isSingleton
enum isSingleton;
Undocumented in source.
isTheAllocator
enum isTheAllocator;
Undocumented in source.

Properties

length
long length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
long length [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta