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

◆ swap()

template<typename T, typename Allocator = fl::allocator<T>>
void fl::deque< T, Allocator >::swap ( deque< T, Allocator > & other)
inline

Definition at line 362 of file deque.h.

362 {
363 if (this != &other) {
364 T* temp_data = mData;
369
370 mData = other.mData;
372 mSize = other.mSize;
375
381 }
382 }
T * mData
Definition deque.h:19
fl::size mFront
Definition deque.h:22
fl::size mCapacity
Definition deque.h:20
fl::size mSize
Definition deque.h:21
Allocator mAlloc
Definition deque.h:23