![]() |
Iridescence 1.00
Embedded Graphic Framework
|
static_vector implements a vector with statically allocated storage space More...
#include <ds_types_vector.h>
Additional Inherited Members | |
![]() | |
vector () | |
Creates an empty vector. | |
vector (const vector &rhs)=delete | |
void | clear (void) |
Clears all the elements of the vector. | |
size_t | capacity (void) const |
Returns the capacity of the vector. | |
size_t | size (void) const |
Returns the number of elements in the vector. | |
const T * | data (void) const |
Returns the pointer to the C array underlying the vector. | |
T * | data (void) |
Returns the pointer to the C array underlying the vector. | |
T & | operator[] (size_t pos) |
Access operator []. | |
int32_t | find (const T &value) |
Searches for the first element matching the specified value. | |
int32_t | find (const lambda< bool(const T &item)> &equals) |
Searches for the first element matching the specified value. Uses a lambda to perform the matching. | |
void | append (const T &item) |
Appends an element at the end of the vector. | |
void | append (const T &item, size_t count) |
Appends an element one or more times at the end of the vector. | |
void | append (const vector< T > &items) |
Appends the elements from the supplied vector at the end of the current vector. | |
void | append (const vector< T > &items, size_t count) |
Appends a number of elements from the supplied vector at the end of the current vector. | |
void | insert (const T &item, size_t pos) |
Inserts an element at a specified position in the vector. | |
void | insert (const T &item, size_t count, size_t pos) |
Inserts an element one or more times at a specified position in the vector. | |
void | insert (const vector< T > &items, size_t pos) |
Inserts the elements from the supplied vector at a specified position in the vector. | |
void | insert (const vector< T > &items, size_t count, size_t pos) |
Inserts a number of elements from the supplied vector at a specified position in the vector. | |
void | insert (const T *items, size_t count, size_t pos) |
Inserts the elements from the supplied C array at a specified position in the vector. | |
void | erase (size_t pos, size_t count) |
Erases elements from the vector. | |
![]() | |
T * | mArray |
size_t | mCapacity |
static_vector implements a vector with statically allocated storage space