| 505 | } |
| 506 | |
| 507 | void 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 |
no test coverage detected