BoundedArray

A statically allocated array with up to maxElements elements.

Constructors

this
this(E[] values)
Undocumented in source.
this
this(E[] values)
Undocumented in source.
this
this(V values)
Undocumented in source.

Members

Aliases

ElementType
alias ElementType = E

An alias to the element type.

opDollar
alias opDollar = length

Functions

opBinary
typeof(this) opBinary(ElementType element)
typeof(this) opBinary(typeof(this) other)
opIndex
inout(E[]) opIndex()
opIndex
inout(E) opIndex(size_t idx)
opIndex
typeof(this) opIndex(size_t[2] bounds)
const(typeof(this)) opIndex(size_t[2] bounds)
opOpAssign
typeof(this) opOpAssign(ElementType element)
typeof(this) opOpAssign(typeof(this) other)
opSlice
size_t[2] opSlice(size_t from, size_t to)
Undocumented in source. Be warned that the author may not have intended to support it.
popBack
void popBack()
popFront
void popFront()

Range primitives for a random access range.

sbinCustomSerialize
void sbinCustomSerialize(R r)
Undocumented in source. Be warned that the author may not have intended to support it.
toJson
Json toJson()

Convert from/to Json.

Properties

back
ElementType back [@property getter]
empty
bool empty [@property getter]
front
ElementType front [@property getter]
length
size_t length [@property getter]
save
typeof(this) save [@property getter]

Static functions

fromJson
typeof(this) fromJson(Json src)

Convert from/to Json.

sbinCustomDeserialize
void sbinCustomDeserialize(R r, typeof(this) array)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

maxElements
enum maxElements;

The maximum number of elements this bounded array can hold.

Meta