5 ms·
A more common case, would be swapping a vector element with the back of the vector and popping it off, which is kinda common.
by Matheus28 11y ago
A more common case, would be swapping a vector element with the back of the vector and popping it off, which is kinda common.
- plorkyeran 11y agoIt was common pre-C++11, but these days you should just be doing a move and pop rather than a swap and pop.
- adrianN 11y agoLuckily all existing code has been modernized to C++11 /s.