Vec

Undocumented in source.

Constructors

this
this(T[] values)

Construct from a list or slice of values

this
this(Args args)

Construct from any combination of values, slices of values, or other Vec instances

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

To avoid performance pitfalls, implicit copying is disabled. Use .dup instead.

Members

Aliases

opDollar
alias opDollar = length
Undocumented in source.

Functions

back
inout(T) back()
Undocumented in source. Be warned that the author may not have intended to support it.
dup
Vec!T dup()

Create a shallow copy of this Vec.

front
inout(T) front()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
typeof(null) opAssign(typeof(null) )
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
T opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(T) opIndex(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Vec opOpAssign(T[] values)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Vec opOpAssign(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(T)[] opSlice()

Return a slice of the held items. Ownership is unaffected, so this is a "view" into the contents. Can be used to perform range operations and iteration.

popBack
void popBack()
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(size_t index)

Remove the element with the given index, shifting all elements after it to the left.

Properties

empty
bool empty [@property getter]

Range-like primitives

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

Meta