Topic: Defect Report: invalidation of iterators and emplace vs. insert inconsistence in assoc. containers
Author: =?ISO-8859-2?Q?Boris_Du=B9ek?= <boris.dusek@gmail.com>
Date: Sat, 24 Oct 2009 20:14:31 CST Raw View
In the latest published draft N2960, section 23.2.4
[associative.reqmts], paragraph 8, it is specifies that that "insert"
does not invalidate any iterators. As per 23.2.1, paragraph 12, this
holds true not only for "insert", but "emplace" as well. This gives
the "insert" member a special treatment w.r.t. "emplace" member in
23.2.4, par. 8, since both modify the container. For the sake of
consistency, in 23.2.4, par. 8: either reference to "insert" should be
removed (i.e. count on 23.2.1, par. 12), or reference to "emplace" be
added (i.e. mention all members of assoc. containers that modify it).
Best regards,
Boris Dusek
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]