
27 Jun
2019
27 Jun
'19
7:33 a.m.
On 27/06/2019 19:06, degski wrote:
Yes, but std::swap must also not invalidate any references, pointers, or iterators referring to the elements of the containers being swapped, which leaves the scope for throwing rather small [if at all possible].
Are you sure about that? Perhaps it is a failure of my imagination (or I'm misunderstanding what you're saying), but that doesn't even seem possible.