FixedSizeArray

Undocumented in source.

Constructors

this
this(Args args)
Undocumented in source.

Destructor

~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.
emplaceBack
void emplaceBack(Args args)

This function emplaces an S element at the back if there is space. Otherwise the behaviour is undefined.

insertBack
void insertBack(S t)
void insertBack(S s)
void insertBack(S defaultValue, size_t num)

This function inserts an S element at the back if there is space. Otherwise the behaviour is undefined.

insertFront
void insertFront(S t)

This function inserts an S element at the front if there is space. Otherwise the behaviour is undefined.

opIndex
T opIndex(size_t idx)
const(T) opIndex(size_t idx)

Use an index to access the array.

opSlice
FixedSizeArraySlice!(typeof(this), T, Size) opSlice(size_t low, size_t high)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
FixedSizeArraySlice!(typeof(this), T, Size) opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice(size_t low, size_t high)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(ulong idx)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
void removeAll()

This function removes all elements from the array.

removeBack
void removeBack()

This function removes an element form the back of the array.

removeFront
void removeFront()

This function removes an element form the front of the array.

Manifest constants

ByteCap
enum ByteCap;
Undocumented in source.

Properties

back
T back [@property getter]

Access the last or the first element of the array.

back
const(T) back [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]

Gives the length of the array.

front
T front [@property getter]

Access the last or the first element of the array.

front
const(T) front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]

Gives the length of the array.

Variables

base
long base;
Undocumented in source.
disableDtor
bool disableDtor;

If true no destructor of any element stored in the FixedSizeArray will be called.

length_
long length_;
Undocumented in source.
store
void[ByteCap] store;
Undocumented in source.

Meta