78 size_t find(
const T& value)
const {
79 for (
size_t i = 0; i <
mSize; ++i) {
80 if (
mData[i] == value) {
Slice(const Slice &other)
Slice< T > slice(size_t start) const
Slice< T > slice(size_t start, size_t end) const
T & operator[](size_t index)
Slice & operator=(const Slice &other)
const T & operator[](size_t index) const
size_t find(const T &value) const
Slice(T *data, size_t size)
Implements a simple red square effect for 2D LED grids.