|
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>
Inheritance diagram for fl::array< T, N >: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 = fl::size |
| using | value_type = T |
Public Member Functions | |
| array ()=default | |
| array (array &&)=default | |
| array (const array &)=default | |
| array (const T &value) | |
| array (fl::initializer_list< T > list) | |
| T & | at (fl::size pos) |
| const T & | at (fl::size 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 |
| fl::size | max_size () const noexcept |
| array & | operator= (array &&)=default |
| array & | operator= (const array &)=default |
| T & | operator[] (fl::size pos) |
| const_reference | operator[] (fl::size pos) const |
| fl::size | size () const noexcept |
| void | swap (array &other) |
Static Private Member Functions | |
| static T & | error_value () |
Private Attributes | |
| T | data_ [N] |