Qt and Trivial Relocation (Part 2) -- Giuseppe D'Angelo
In this installment we are going to explore the relationships between trivial relocation and move assignments.
Qt and Trivial Relocation (Part 2)
by Giuseppe D'Angelo
From the article:
Last time we started our investigation of trivial relocation by considering an important use-case: reallocating a vector. This happens when a vector reaches its capacity, but more storage is needed.
Let’s now consider a different operation: erasing an element from the middle of a QVector.
How do we go about it?