Vector

Dynamic Vector without Garbage Collection

Constructors

this
this(size_t n)

Constructor

this
this(T[] src, size_t n)

Constructor

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

capacity
size_t capacity()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
typeof(this) clear()

Clears entire array

erase
typeof(this) erase(size_t n)

Erases nth array element

length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref T) nothrow @(nogc) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref size_t, ref T) nothrow @(nogc) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
typeof(this) opAssign(typeof(this) rhs)

Ref. counting during structure assignation

opBinary
typeof(this) opBinary(T rhs)
typeof(this) opBinary(T[] rhs)
typeof(this) opBinary(typeof(this) rhs)

Appends a value to an array using << operator

opDollar
size_t opDollar()

The $ operator returns the length of the array

opIndex
T opIndex(size_t id)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
typeof(this) opSlice(size_t a, size_t b)
Undocumented in source. Be warned that the author may not have intended to support it.
pop
void pop()

Removes the last element from an array

ptr
T* ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
push
typeof(this) push(T rhs)
typeof(this) push(T[] rhs)
typeof(this) push(typeof(this) rhs)

Appends a value to an array

shrink
typeof(this) shrink(size_t len)

Shrinks array

shrink_to_fit
typeof(this) shrink_to_fit()

Requests the removal of unused capacity.

trim
typeof(this) trim()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta