8sa1-gcc/libstdc++-v3/testsuite/24_iterators
Jonathan Wakely 00b46c00c8 libstdc++: Add noexcept to std::begin etc as per LWG 2280 and 3537
This implements the proposed changes for LWG 3537 (which we're allowed
to do as an extension whatever the outcome of the issue). I noticed we
didn't implement LWG 2280 completely, as the std::begin and std::end
overloads for arrays were not noexcept.

libstdc++-v3/ChangeLog:

	* include/bits/range_access.h (begin(T (&)[N]), end(T (&)[N])):
	Add missing 'noexcept' as per LWG 2280.
	(rbegin(T (&)[N]), rend(T (&)[N]), rbegin(initializer_list<T>))
	(rend(initializer_list<T>)): Add 'noexcept' as per LWG 3537.
	* testsuite/24_iterators/range_access/range_access.cc: Check for
	expected noexcept specifiers. Check result types of generic
	std::begin and std::end overloads.
	* testsuite/24_iterators/range_access/range_access_cpp14.cc:
	Check for expected noexcept specifiers.
	* testsuite/24_iterators/range_access/range_access_cpp17.cc:
	Likewise.
2021-03-22 15:56:49 +00:00
..
associated_types Update copyright years. 2021-01-04 10:26:59 +01:00
back_insert_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
bidirectional Update copyright years. 2021-01-04 10:26:59 +01:00
common_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
contiguous Update copyright years. 2021-01-04 10:26:59 +01:00
counted_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
customization_points Update copyright years. 2021-01-04 10:26:59 +01:00
forward Update copyright years. 2021-01-04 10:26:59 +01:00
front_insert_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
headers/iterator Update copyright years. 2021-01-04 10:26:59 +01:00
indirect_callable Update copyright years. 2021-01-04 10:26:59 +01:00
input Update copyright years. 2021-01-04 10:26:59 +01:00
insert_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
istream_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
istreambuf_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
move_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
normal_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
operations Update copyright years. 2021-01-04 10:26:59 +01:00
ostream_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
ostreambuf_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
output Update copyright years. 2021-01-04 10:26:59 +01:00
random_access Update copyright years. 2021-01-04 10:26:59 +01:00
range_access libstdc++: Add noexcept to std::begin etc as per LWG 2280 and 3537 2021-03-22 15:56:49 +00:00
range_operations Update copyright years. 2021-01-04 10:26:59 +01:00
reverse_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
aliases.cc Update copyright years. 2021-01-04 10:26:59 +01:00
container_access.cc Update copyright years. 2021-01-04 10:26:59 +01:00