23template <
typename T,
typename Deleter = ArrayDeleter<T>>
class scoped_array {
60 explicit operator bool() const noexcept {
return arr_ !=
nullptr; }
94template <
typename T,
typename Alloc = fl::allocator<T>>
class scoped_array2 {
128 other.arr_ =
nullptr;
134 if (
this != &other) {
138 other.arr_ =
nullptr;
154 explicit operator bool() const noexcept {
return arr_ !=
nullptr; }
199 other.arr_ = tmp_arr;
200 other.size_ = tmp_size;
bool operator!() const noexcept
scoped_array2(fl::size_t size=0)
scoped_array2(const scoped_array2 &)=delete
void reset(fl::size_t new_size=0)
scoped_array2 & operator=(const scoped_array2 &)=delete
FASTLED_DEPRECATED_CLASS("Use fl::vector<T, fl::allocator_psram<T>> instead")
void swap(scoped_array2 &other) noexcept
scoped_array2(scoped_array2 &&other) noexcept
T & operator[](fl::size_t i) const
scoped_array2 & operator=(scoped_array2 &&other) noexcept
void reset(T *arr=nullptr)
scoped_array & operator=(const scoped_array &)=delete
T & operator[](fl::size_t i) const
scoped_array(scoped_array &&other) noexcept
void swap(scoped_array &other) noexcept
bool operator!() const noexcept
FASTLED_DEPRECATED_CLASS("Use fl::vector<T, fl::allocator_psram<T>> instead")
scoped_array(const scoped_array &)=delete
scoped_array(T *arr, Deleter deleter)
scoped_array & operator=(scoped_array &&other) noexcept
scoped_array(T *arr=nullptr)
Implements the FastLED namespace macros.