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

◆ swap()

template<typename T, fl::size N>
void fl::FixedVector< T, N >::swap ( FixedVector< T, N > & other)
inline

Definition at line 327 of file vector.h.

327 {
328 if (this != &other) {
330 for (fl::size i = 0; i < max_size; ++i) {
331 fl::swap(memory()[i], other.memory()[i]);
332 }
333 // swap the sizes
337 }
338 }
fl::size current_size
Definition vector.h:341
T * memory()
Definition vector.h:82
#define MAX(a, b)
Definition math_macros.h:37
void swap(array< T, N > &lhs, array< T, N > &rhs) noexcept(noexcept(lhs.swap(rhs)))
Definition array.h:156