3 ms·
By invalidating iterators (and pointers and references) when swapping: https://stackoverflow.com/a/8191356 https://stackoverflow.com/a/8191356
by mehrdadn 7y ago
By invalidating iterators (and pointers and references) when swapping: https://stackoverflow.com/a/8191356 https://stackoverflow.com/a/8191356