FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator=() [2/2]

bitset_dynamic & fl::bitset_dynamic::operator= ( const bitset_dynamic & other)
inline

Definition at line 58 of file bitset_dynamic.h.

58 {
59 if (this != &other) {
60 if (other._size > 0) {
61 resize(other._size);
62 fl::memcpy(_blocks.get(), other._blocks.get(),
63 _block_count * sizeof(block_type));
64 } else {
65 clear();
66 }
67 }
68 return *this;
69 }
FL_DISABLE_WARNING_POP FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void resize(fl::u32 new_size) FL_NOEXCEPT
fl::unique_ptr< block_type[]> _blocks
FL_DISABLE_WARNING_POP void clear() FL_NOEXCEPT
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT

References bitset_dynamic(), _block_count, _blocks, clear(), FL_NOEXCEPT, fl::memcpy(), and resize().

+ Here is the call graph for this function: