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 535 of file vector.h.

535 {
536 T *temp = mArray.release();
537 size_t temp_size = mSize;
538 size_t temp_capacity = mCapacity;
539 T *temp2 = other.mArray.release();
540 mArray.reset(temp2);
541 other.mArray.reset(temp);
542 mSize = other.mSize;
546 }
size_t mCapacity
Definition vector.h:309
fl::scoped_array< T > mArray
Definition vector.h:307
size_t mSize
Definition vector.h:310

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

+ Here is the caller graph for this function: