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

◆ operator=() [2/2]

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

Definition at line 198 of file deque.h.

198 {
199 if (this != &other) {
200 clear();
201 if (mData) {
202 mAlloc.deallocate(mData, mCapacity);
203 }
204
205 mData = other.mData;
207 mSize = other.mSize;
210
211 other.mData = nullptr;
212 other.mCapacity = 0;
213 other.mSize = 0;
214 other.mFront = 0;
215 }
216 return *this;
217 }
void clear()
Definition deque.h:292
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