FastLED 3.9.15
|
A fixed-size array implementation similar to std::array.
This class provides a thin wrapper around a C-style array with STL container-like interface.
T | The type of elements |
N | The number of elements |
#include <array.h>
Public Types | |
using | const_iterator = const_pointer |
using | const_pointer = const value_type * |
using | const_reference = const value_type & |
using | difference_type = ptrdiff_t |
using | iterator = pointer |
using | pointer = value_type * |
using | reference = value_type & |
using | size_type = size_t |
using | value_type = T |
Public Member Functions | |
array ()=default | |
array (array &&)=default | |
array (const array &)=default | |
array (const T &value) | |
T & | at (size_type pos) |
const T & | at (size_type pos) const |
T & | back () |
const T & | back () const |
const_iterator | begin () const noexcept |
iterator | begin () noexcept |
const_iterator | cbegin () const noexcept |
const_pointer | data () const noexcept |
pointer | data () noexcept |
bool | empty () const noexcept |
const_iterator | end () const noexcept |
iterator | end () noexcept |
void | fill (const T &value) |
T & | front () |
const T & | front () const |
size_type | max_size () const noexcept |
array & | operator= (array &&)=default |
array & | operator= (const array &)=default |
T & | operator[] (size_type pos) |
const_reference | operator[] (size_type pos) const |
size_type | size () const noexcept |
void | swap (array &other) |
Static Private Member Functions | |
static T & | error_value () |
Private Attributes | |
T | data_ [N] |