gcc/libstdc++-v3/testsuite/23_containers
Jonathan Wakely 1cbba49e34 libstdc++: Simplify noexcept-specifiers for move constructors
This puts the logic for the noexcept-specifier in one place, and then
reuses it elsewhere. This means checking whether the move constructor
can throw doesn't need to do overload resolution and then check whether
some other constructor can throw, we just get the answer directly.

libstdc++-v3/ChangeLog:

	* include/bits/hashtable.h (_Hashtable::_S_nothrow_move()):
	New function to determine noexcept-specifier for move
	constructors.
	(_Hashtable): Use _S_nothrow_move() on move constructors.
	* testsuite/23_containers/unordered_map/cons/noexcept_move_construct.cc:
	Correct static assertion message.
	* testsuite/23_containers/unordered_multimap/cons/noexcept_move_construct.cc:
	Likewise.
	* testsuite/23_containers/unordered_multiset/cons/noexcept_move_construct.cc:
	Likewise.
	* testsuite/23_containers/unordered_set/cons/noexcept_move_construct.cc:
	Likewise.
2021-04-08 17:49:59 +01:00
..
array Update copyright years. 2021-01-04 10:26:59 +01:00
bitset Update copyright years. 2021-01-04 10:26:59 +01:00
deque libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00
forward_list libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00
headers Update copyright years. 2021-01-04 10:26:59 +01:00
list libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
multimap Update copyright years. 2021-01-04 10:26:59 +01:00
multiset Update copyright years. 2021-01-04 10:26:59 +01:00
priority_queue Update copyright years. 2021-01-04 10:26:59 +01:00
queue Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
span Update copyright years. 2021-01-04 10:26:59 +01:00
stack Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map libstdc++: Simplify noexcept-specifiers for move constructors 2021-04-08 17:49:59 +01:00
unordered_multimap libstdc++: Simplify noexcept-specifiers for move constructors 2021-04-08 17:49:59 +01:00
unordered_multiset libstdc++: Simplify noexcept-specifiers for move constructors 2021-04-08 17:49:59 +01:00
unordered_set libstdc++: Simplify noexcept-specifiers for move constructors 2021-04-08 17:49:59 +01:00
vector libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00