|
|
| array ()=default |
| | Create a default array of N elements of type T.
|
| |
| | array (T buffer[N]) |
| | Convert a C-style array to an array. More...
|
| |
| | array (std::initializer_list< T > list) |
| | Create an array from a braced-list of elements. More...
|
| |
| | array (const array< T, N > &that) |
| | Copy that array. More...
|
| |
| array< T, N > & | operator= (const T buffer[N]) |
| | Overwrite every element of this array with every element of buffer. More...
|
| |
| array< T, N > & | operator= (std::initializer_list< T > list) |
| | Overwrite every element of this array with every element of list. More...
|
| |
| array & | operator= (const array &that) |
| | Overwrite every element of this array with every element of that. More...
|
| |
| CTPTR | data () const |
| | Get a const pointer to the first element of this array. More...
|
| |
| TPTR | data () |
| | Get a pointer to the first element of this array. More...
|
| |
| constexpr uint8_t | size () const |
| | Get the number of elements in this array. More...
|
| |
| CTREF | operator[] (uint8_t index) const |
| | Get a const reference to the element at index in this array. More...
|
| |
| TREF | operator[] (uint8_t index) |
| | Get a reference to the element at index in this array. More...
|
| |
| TPTR | begin () |
| | Return an iterator to the first element of this array. More...
|
| |
| TPTR | end () |
| | Return an iterator to the last element of this array. More...
|
| |
| CTPTR | begin () const |
| | Return a const iterator to the first element of this array. More...
|
| |
| CTPTR | end () const |
| | Return a const iterator to the last element of this array. More...
|
| |
| template<uint8_t NN> |
| void | set (uint8_t index, const T(&buffer)[NN]) |
| | Replace NN elements of this array, starting at index element, with elements from buffer. More...
|
| |
| template<uint8_t NN> |
| void | set (uint8_t index, const array< T, NN > &buffer) |
| | Replace NN elements of this array, starting at index element, with elements from buffer. More...
|
| |
template<typename T_, uint8_t N_>
class containers::array< T_, N_ >
Container that encapsulates a fixed size array.
This can be used as would be a C-style array (same operators) without any impact on performance. This also allows, for instance, to use a braced-list as a way to initialiaze or replace the values in this array.
- Template Parameters
-
| T_ | the type of elements in this array |
| N_ | the number of elements in this array |
Definition at line 34 of file array.h.