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

◆ swap() [1/2]

template<typename T>
void fl::HeapVector< T >::swap ( HeapVector< T > & other)
inline

Definition at line 433 of file vector.h.

433 {
434 T* temp = mArray.release();
435 size_t temp_size = mSize;
436 size_t temp_capacity = mCapacity;
437 T* temp2 = other.mArray.release();
438 mArray.reset(temp2);
439 other.mArray.reset(temp);
440 mSize = other.mSize;
444 }
size_t mCapacity
Definition vector.h:220
fl::scoped_array< T > mArray
Definition vector.h:218
size_t mSize
Definition vector.h:221

Referenced by fl::HeapVector< DrawItem >::insert(), and fl::HeapVector< DrawItem >::resize().

+ Here is the caller graph for this function: