Add assertions to extract(const_iterator) functions
authorJonathan Wakely <jwakely@redhat.com>
Mon, 26 Sep 2016 10:17:48 +0000 (11:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 26 Sep 2016 10:17:48 +0000 (11:17 +0100)
commit976160b962fce53f5ed3fe833af1c9d729327bfb
tree502c14614a65f7e17fcb560f95428e84fe0debde
parenta38814c0038fb4bf756547a3f50d125da0066737
Add assertions to extract(const_iterator) functions

* include/bits/stl_map.h (map::extract(const_iterator)): Assert that
iterator is not past-the-end.
* include/bits/stl_multimap.h (multimap::extract(const_iterator)):
Likewise.
* include/bits/stl_multiset.h (multiset::extract(const_iterator)):
Likewise.
* include/bits/stl_set.h (set::extract(const_iterator)): Likewise.
* include/bits/unordered_map.h (unordered_map::extract(const_iterator))
(unordered_multimap::extract(const_iterator)): Likewise.
* include/bits/unordered_set.h (unordered_set::extract(const_iterator))
(unordered_multiset::extract(const_iterator)): Likewise.

From-SVN: r240487
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/bits/unordered_set.h