On 1 May 2013 19:19, Mihai Vasilian wrote: > > I guess ISO/IEC 14882, Second edition, 2003-10-15 is not the correct > reference material in this case. The current standard is ISO/IEC 14882:2011 > There is this section 23.1 Container requirements, item 10 > "no swap() function invalidates any references, pointers, or iterators > referring to the elements of the > containers being swapped." > > I would like to know please, what is the correct C++ ISO number you > are working with. > I guess I will find then the paragraph you quoted very easy. [container.requirements.general] paragraph 8 The behaviour was clarified by the change for DR 774, see http://cplusplus.github.io/LWG/lwg-defects.html#774