MCPcopy Create free account
hub / github.com/FastLED/FastLED / move_assign

Method move_assign

src/fl/stl/basic_vector.cpp.hpp:507–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void vector_basic::move_assign(vector_basic& other) FL_NOEXCEPT {
508 if (this == &other) return;
509 clear_impl();
510 if (!isInline() && mArray) {
511 mResource->deallocate(mArray, mCapacity * mElementSize);
512 mArray = nullptr;
513 mCapacity = 0;
514 }
515 if (hasInlineBuffer()) {
516 mArray = inlineBufferPtr();
517 mCapacity = mInlineCapacity;
518 }
519 move_from(other);
520}
521
522// ======= DESTRUCTOR =======
523

Callers 2

vector.hFile · 0.80
vector_psramClass · 0.80

Calls 1

deallocateMethod · 0.45

Tested by

no test coverage detected