re PR libstdc++/58338 (Add noexcept to functions with a narrow contract)
commitb4efa80e568555f4ef2ec3a6b9ae82c530242e69
authorMarc Glisse <marc.glisse@inria.fr>
Wed, 18 Sep 2013 18:31:01 +0000 (18 20:31 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Wed, 18 Sep 2013 18:31:01 +0000 (18 18:31 +0000)
treea99d9708382a55ac7deaa9ad1809b8f33002b285
parentc9b29b2540c8f68779937cd6024d256774538a2d
re PR libstdc++/58338 (Add noexcept to functions with a narrow contract)

2013-09-18  Marc Glisse  <marc.glisse@inria.fr>

PR libstdc++/58338
* include/bits/stl_iterator.h (__normal_iterator) [__normal_iterator,
_M_const_cast, operator*, operator->, operator++, operator--,
operator[], operator+=, operator+, operator-=, operator-, base]:
Mark as noexcept.
(operator==(const __normal_iterator&, const __normal_iterator&),
operator!=(const __normal_iterator&, const __normal_iterator&),
operator<(const __normal_iterator&, const __normal_iterator&),
operator>(const __normal_iterator&, const __normal_iterator&),
operator<=(const __normal_iterator&, const __normal_iterator&),
operator>=(const __normal_iterator&, const __normal_iterator&),
operator-(const __normal_iterator&, const __normal_iterator&),
operator+(difference_type, const __normal_iterator&)): Likewise.
* include/bits/stl_list.h (list) [splice, _M_check_equal_allocators]:
Likewise.
(list::_M_check_equal_allocators): Abort instead of throwing.
* include/debug/array (array) [operator[], front, back]: Mark as
noexcept.
* include/profile/array (array) [operator[], front, back]: Likewise.
* include/std/array (array) [operator[], front, back]: Likewise.
* include/debug/list (list::splice): Likewise.
* include/profile/list (list::splice): Likewise.
* testsuite/23_containers/list/operations/5.cc: Remove file.
* testsuite/23_containers/list/operations/5.h: Likewise.

From-SVN: r202716
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/debug/array
libstdc++-v3/include/debug/list
libstdc++-v3/include/profile/array
libstdc++-v3/include/profile/list
libstdc++-v3/include/std/array
libstdc++-v3/testsuite/23_containers/list/operations/5.cc [deleted file]
libstdc++-v3/testsuite/23_containers/list/operations/5.h [deleted file]