gcc/libstdc++-v3/testsuite/20_util
Jonathan Wakely a2b5fdcbdb Implement N4258 (Cleaning-up noexcept in the Library rev 3)
* doc/xml/manual/intro.xml: Document LWG 2108 status.
	* include/bits/alloc_traits.h (allocator_traits::is_always_equal):
	Define.
	* include/bits/allocator.h (allocator::is_always_equal): Likewise.
	* include/bits/forward_list.h
	(forward_list::operator=(forward_list&&)): Use __bool_constant.
	(forward_list::swap(forward_list&)): Add noexcept.
	* include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
	Likewise.
	(_Hashtable::swap(_Hashtable&)): Likewise.
	* include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
	Use _Alloc_traits::is_always_equal.
	(deque::operator=(deque&&)): Likewise.
	(deque::_M_move_assign1(deque&&, false_type)): Add comment and use
	__bool_constant.
	(swap(deque&, deque&)): Add noexcept.
	* include/bits/stl_list.h (list::operator=(list&&)): Use
	__bool_constant.
	(swap(list&, list&)): Add noexcept.
	* include/bits/stl_map.h (map::swap(map&)): Include _Compare in
	noexcept.
	(swap(map&, map&)): Add noexcept.
	* include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
	_Compare in noexcept.
	(swap(multimap&, multimap&)): Add noexcept.
	* include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
	_Compare in noexcept.
	(swap(multiset&, multiset&)): Add noexcept.
	* include/bits/stl_set.h (set::swap(set&)): Include _Compare in
	noexcept.
	(swap(set&, set&)): Add noexcept.
	* include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
	_Compare in noexcept.
	(_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
	is_always_equal.
	* include/bits/stl_vector.h (vector::operator=(vector&&)): Use
	__bool_constant.
	(swap(vector&, vector&)): Add noexcept.
	* include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
	swap(unordered_multimap& unordered_multimap&)): Add noexcept.
	* include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
	swap(unordered_multiset& unordered_multiset&)): Add noexcept.
	* include/ext/alloc_traits.h (__allocator_always_compares_equal):
	Remove.
	(__alloc_traits::_S_always_equal()): Use is_always_equal instead of
	__allocator_always_compares_equal.
	* include/ext/array_allocator.h (array_allocator::is_always_equal):
	Define.
	* include/std/scoped_allocator (__any_of, __propagate_on_copy,
	__propagate_on_move, __propagate_on_swap): Remove.
	(scoped_allocator_adaptor::propagate_on_container_copy_assignment,
	scoped_allocator_adaptor::propagate_on_container_move_assignment,
	scoped_allocator_adaptor::propagate_on_container_swap): Define with
	__and_ instead of __any_of.
	(scoped_allocator_adaptor::is_always_equal): Define.
	* testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
	* testsuite/20_util/scoped_allocator/propagation.cc: Make traits
	derive from true_type or false_type.
	* testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
	is_always_equal member and remove the trait specialization.
	* testsuite/23_containers/vector/52591.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
	Likewise.

From-SVN: r225081
2015-06-26 21:10:24 +01:00
..
add_const Update copyright years. 2015-01-05 13:33:28 +01:00
add_cv Update copyright years. 2015-01-05 13:33:28 +01:00
add_lvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
add_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
add_rvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
add_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
addressof Update copyright years. 2015-01-05 13:33:28 +01:00
align Update copyright years. 2015-01-05 13:33:28 +01:00
aligned_storage Update copyright years. 2015-01-05 13:33:28 +01:00
aligned_union Update copyright years. 2015-01-05 13:33:28 +01:00
alignment_of Update copyright years. 2015-01-05 13:33:28 +01:00
allocator Update copyright years. 2015-01-05 13:33:28 +01:00
allocator_traits Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
auto_ptr std_c++0x_neg.cc: Add -std=c++98. 2015-05-09 00:50:30 -04:00
bad_function_call Update copyright years. 2015-01-05 13:33:28 +01:00
bind Update copyright years. 2015-01-05 13:33:28 +01:00
bool_constant status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
common_type/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
conditional/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
decay/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
declval/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
default_delete Update copyright years. 2015-01-05 13:33:28 +01:00
duration re PR libstdc++/65499 (Missing "using namespace literals::chrono_literals" in std::chrono) 2015-03-27 12:45:10 +00:00
duration_cast Update copyright years. 2015-01-05 13:33:28 +01:00
enable_if/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
enable_shared_from_this Update copyright years. 2015-01-05 13:33:28 +01:00
exchange Update copyright years. 2015-01-05 13:33:28 +01:00
extent Update copyright years. 2015-01-05 13:33:28 +01:00
forward Update copyright years. 2015-01-05 13:33:28 +01:00
function re PR libstdc++/65760 (invalid use of incomplete type with std::is_convertible<C, C>) 2015-04-29 17:07:47 +01:00
function_objects Update copyright years. 2015-01-05 13:33:28 +01:00
has_trivial_copy_assign re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_trivial_copy_constructor re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_trivial_default_constructor re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_virtual_destructor Update copyright years. 2015-01-05 13:33:28 +01:00
hash Update copyright years. 2015-01-05 13:33:28 +01:00
headers synopsis.cc: Add _GLIBCXX14_CONSTEXPR. 2015-05-09 20:46:12 -04:00
integer_sequence Update copyright years. 2015-01-05 13:33:28 +01:00
integral_constant Update copyright years. 2015-01-05 13:33:28 +01:00
is_abstract Update copyright years. 2015-01-05 13:33:28 +01:00
is_arithmetic Update copyright years. 2015-01-05 13:33:28 +01:00
is_array Update copyright years. 2015-01-05 13:33:28 +01:00
is_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_base_of Update copyright years. 2015-01-05 13:33:28 +01:00
is_class Update copyright years. 2015-01-05 13:33:28 +01:00
is_compound Update copyright years. 2015-01-05 13:33:28 +01:00
is_const Update copyright years. 2015-01-05 13:33:28 +01:00
is_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_convertible Update copyright years. 2015-01-05 13:33:28 +01:00
is_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_empty Update copyright years. 2015-01-05 13:33:28 +01:00
is_enum Update copyright years. 2015-01-05 13:33:28 +01:00
is_final Update copyright years. 2015-01-05 13:33:28 +01:00
is_floating_point Update copyright years. 2015-01-05 13:33:28 +01:00
is_function Update copyright years. 2015-01-05 13:33:28 +01:00
is_fundamental Update copyright years. 2015-01-05 13:33:28 +01:00
is_integral Update copyright years. 2015-01-05 13:33:28 +01:00
is_literal_type Update copyright years. 2015-01-05 13:33:28 +01:00
is_lvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_function_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_object_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_swappable Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
is_null_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_object Update copyright years. 2015-01-05 13:33:28 +01:00
is_pod Update copyright years. 2015-01-05 13:33:28 +01:00
is_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_polymorphic Update copyright years. 2015-01-05 13:33:28 +01:00
is_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_rvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_same Update copyright years. 2015-01-05 13:33:28 +01:00
is_scalar Update copyright years. 2015-01-05 13:33:28 +01:00
is_signed Update copyright years. 2015-01-05 13:33:28 +01:00
is_standard_layout Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivial Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copyable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_union Update copyright years. 2015-01-05 13:33:28 +01:00
is_unsigned Update copyright years. 2015-01-05 13:33:28 +01:00
is_void Update copyright years. 2015-01-05 13:33:28 +01:00
is_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
make_signed/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
make_unsigned/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
move Update copyright years. 2015-01-05 13:33:28 +01:00
move_if_noexcept Update copyright years. 2015-01-05 13:33:28 +01:00
owner_less Update copyright years. 2015-01-05 13:33:28 +01:00
pair re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
pointer_safety memory (pointer_safety, [...]): Define. 2015-05-01 12:02:18 +01:00
pointer_traits Update copyright years. 2015-01-05 13:33:28 +01:00
rank Update copyright years. 2015-01-05 13:33:28 +01:00
ratio Update copyright years. 2015-01-05 13:33:28 +01:00
raw_storage_iterator stl_raw_storage_iter.h (raw_storage_iterator::base()): Define (LWG 2454). 2015-05-13 14:54:46 +01:00
reference_wrapper Update copyright years. 2015-01-05 13:33:28 +01:00
remove_all_extents Update copyright years. 2015-01-05 13:33:28 +01:00
remove_const Update copyright years. 2015-01-05 13:33:28 +01:00
remove_cv Update copyright years. 2015-01-05 13:33:28 +01:00
remove_extent Update copyright years. 2015-01-05 13:33:28 +01:00
remove_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
remove_reference Update copyright years. 2015-01-05 13:33:28 +01:00
remove_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
result_of Update copyright years. 2015-01-05 13:33:28 +01:00
scoped_allocator Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
shared_ptr Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
specialized_algorithms re PR libstdc++/66078 (20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11) 2015-05-20 18:11:03 +01:00
steady_clock Update copyright years. 2015-01-05 13:33:28 +01:00
system_clock Update copyright years. 2015-01-05 13:33:28 +01:00
time_point Update copyright years. 2015-01-05 13:33:28 +01:00
time_point_cast Update copyright years. 2015-01-05 13:33:28 +01:00
tuple re PR libstdc++/65978 (missing constexpr on std::forward_as_tuple and std::tie (LWG issues 2275 and 2301)) 2015-05-02 12:20:03 +01:00
typeindex Update copyright years. 2015-01-05 13:33:28 +01:00
underlying_type/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
unique_ptr Update copyright years. 2015-01-05 13:33:28 +01:00
uses_allocator Update copyright years. 2015-01-05 13:33:28 +01:00
void_t type_traits (void_t): Add. 2015-04-28 13:07:34 +01:00
weak_ptr Update copyright years. 2015-01-05 13:33:28 +01:00
rel_ops.cc Update copyright years. 2015-01-05 13:33:28 +01:00
temporary_buffer.cc Update copyright years. 2015-01-05 13:33:28 +01:00