FastLED 3.9.15
Loading...
Searching...
No Matches
fl::array< T, N > Class Template Reference

Detailed Description

template<typename T, size_t N>
class fl::array< T, N >

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.

Template Parameters
TThe type of elements
NThe number of elements

Definition at line 19 of file array.h.

#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
 
arrayoperator= (array &&)=default
 
arrayoperator= (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

data_ [N]
 

The documentation for this class was generated from the following file: