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

◆ operator=() [2/2]

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

Definition at line 309 of file deque.h.

309 {
310 if (this != &other) {
311 clear();
312 if (mData) {
313 mResource->deallocate(mData, mCapacity * sizeof(T));
314 }
315
316 mData = other.mData;
318 mSize = other.mSize;
321
322 other.mData = nullptr;
323 other.mCapacity = 0;
324 other.mSize = 0;
325 other.mFront = 0;
326 }
327 return *this;
328 }
fl::size mFront
Definition deque.h:19
memory_resource * mResource
Definition deque.h:20
void clear()
Definition deque.h:486
fl::size mCapacity
Definition deque.h:17
fl::size mSize
Definition deque.h:18
T * mData
Definition deque.h:16