This is an old version of the documentation. View the latest version
here.
Control Surface
1.0.0
MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
19 template <
class T,
size_t N>
36 ERROR(
F(
"Index out of bounds: ") << index <<
F(
" ≥ ") << N, 0xEDED);
53 ERROR(
F(
"Index out of bounds: ") << index <<
F(
" ≥ ") << N, 0xEDED);
88 for (
size_t i = 0; i < N; i++)
89 if ((*
this)[i] != rhs[i])
bool operator==(const Array< T, N > &rhs) const
Check the equality of all elements in two arrays.
bool operator!=(const Array< T, N > &rhs) const
Check the inequality of all elements in two arrays.
An array wrapper for easy copying, comparing, and iterating.
const T * end() const
Get a pointer to the memory beyond the array.
T * end()
Get a pointer to the memory beyond the array.
T & operator[](size_t index)
Get the element at the given index.
constexpr static size_t length
const T * begin() const
Get a pointer to the first element.
T * begin()
Get a pointer to the first element.
const T & operator[](size_t index) const
Get the element at the given index.