Use memcpy() to copy N - 1 items starting at the N = 1 position to the N = 0 position, then assign the Nth entry to your new value (using QVector::operator[]() if you want).
this should be safe (and fast).
Thanks d_stranz for the reply.
Well, how exactly the use of memcpy() makes it faster?
Bookmarks