gcc/libstdc++-v3/include/bits
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
..
algorithmfwd.h Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
alloc_traits.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
allocated_ptr.h * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof. 2015-06-16 23:33:06 +01:00
allocator.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
atomic_base.h re PR libstdc++/65147 (alignment of std::atomic object is not correct) 2015-04-09 12:15:44 +01:00
atomic_futex.h atomic_base.h: Use __always_inline__ instead of always_inline. 2015-01-29 12:47:20 +00:00
basic_ios.h Update copyright years. 2015-01-05 13:33:28 +01:00
basic_ios.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
basic_string.h basic_string.h (basic_string<>::front()): Add !empty debug check. 2015-06-24 20:12:05 +00:00
basic_string.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
boost_concept_check.h Update copyright years. 2015-01-05 13:33:28 +01:00
c++0x_warning.h Update copyright years. 2015-01-05 13:33:28 +01:00
c++14_warning.h Update copyright years. 2015-01-05 13:33:28 +01:00
c++config c++config (__gnu_cxx::__cxx11): Define new namespace. 2015-03-20 13:26:55 +00:00
char_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
codecvt.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
concept_check.h Update copyright years. 2015-01-05 13:33:28 +01:00
cpp_type_traits.h 2015-05-20 François Dumont <fdumont@gcc.gnu.org> 2015-05-20 19:02:22 +00:00
deque.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
enable_special_members.h Update copyright years. 2015-01-05 13:33:28 +01:00
forward_list.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
forward_list.tcc forward_list.h (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to rvalue-reference. 2015-06-17 18:45:45 +01:00
fstream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
functexcept.h Update copyright years. 2015-01-05 13:33:28 +01:00
functional_hash.h Update copyright years. 2015-01-05 13:33:28 +01:00
gslice.h Update copyright years. 2015-01-05 13:33:28 +01:00
gslice_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
hashtable.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
hashtable_policy.h hashtable_policy.h (_Prime_rehash_policy::_S_n_primes): Delete. 2015-04-30 07:13:37 +00:00
indirect_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
ios_base.h Update copyright years. 2015-01-05 13:33:28 +01:00
istream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
list.tcc C++11 allocator support for std::list. 2015-06-17 21:36:42 +01:00
locale_classes.h locale_classes.h (locale::facet): Delete copy operations in C++11 mode. 2015-05-01 17:50:31 +01:00
locale_classes.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
locale_conv.h * include/bits/locale_conv.h (__do_str_codecvt): Set __count. 2015-06-25 19:23:41 +01:00
locale_facets.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
locale_facets.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
locale_facets_nonio.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
locale_facets_nonio.tcc re PR libstdc++/64657 (Support iterators with overloaded operator-comma) 2015-04-29 16:22:13 +01:00
localefwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
mask_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
memoryfwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
move.h Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
ostream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
ostream_insert.h Update copyright years. 2015-01-05 13:33:28 +01:00
parse_numbers.h Update copyright years. 2015-01-05 13:33:28 +01:00
postypes.h Update copyright years. 2015-01-05 13:33:28 +01:00
predefined_ops.h Update copyright years. 2015-01-05 13:33:28 +01:00
ptr_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
quoted_string.h locale_conv.h: Fix copyright years. 2015-05-26 10:52:25 +01:00
random.h * include/bits/random.h (seed_seq): More noexcept (LWG 2440). 2015-05-13 13:21:52 +01:00
random.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
range_access.h range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR on overloads for arrays. 2015-01-19 14:37:03 +00:00
regex.h re PR libstdc++/64441 (A match_results returns an incorrect sub_match if the sub_match::matched is false) 2015-03-10 18:41:46 +00:00
regex.tcc regex.tcc: Handle regex_constants::__polynomial. 2015-04-28 04:16:48 +00:00
regex_automaton.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_automaton.tcc regex.tcc: Handle regex_constants::__polynomial. 2015-04-28 04:16:48 +00:00
regex_compiler.h re PR libstdc++/64584 (basic_regex::assign breaks *this if it throws regex_error) 2015-01-19 22:56:04 +00:00
regex_compiler.tcc re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position) 2015-01-09 03:58:59 +00:00
regex_constants.h regex.tcc: Handle regex_constants::__polynomial. 2015-04-28 04:16:48 +00:00
regex_error.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_executor.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_executor.tcc regex.tcc: Handle regex_constants::__polynomial. 2015-04-28 04:16:48 +00:00
regex_scanner.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_scanner.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
shared_ptr.h Update copyright years. 2015-01-05 13:33:28 +01:00
shared_ptr_atomic.h Update copyright years. 2015-01-05 13:33:28 +01:00
shared_ptr_base.h Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
slice_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
sstream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
stl_algo.h re PR libstdc++/64657 (Support iterators with overloaded operator-comma) 2015-04-29 16:22:13 +01:00
stl_algobase.h re PR libstdc++/66354 ([UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument) 2015-05-31 23:42:17 +01:00
stl_bvector.h stl_bvector.h (vector<bool>::vector()): Add noexcept. 2015-06-26 18:26:38 +01:00
stl_construct.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_deque.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_function.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_heap.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_iterator.h 2015-05-20 François Dumont <fdumont@gcc.gnu.org> 2015-05-20 19:02:22 +00:00
stl_iterator_base_funcs.h 2015-05-29 François Dumont fdumont@gcc.gnu.org> 2015-05-29 21:29:07 +00:00
stl_iterator_base_types.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_list.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_map.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_multimap.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_multiset.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_numeric.h re PR libstdc++/64657 (Support iterators with overloaded operator-comma) 2015-04-29 16:22:13 +01:00
stl_pair.h Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
stl_queue.h Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
stl_raw_storage_iter.h stl_raw_storage_iter.h (raw_storage_iterator::base()): Define (LWG 2454). 2015-05-13 14:54:46 +01:00
stl_relops.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_set.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_stack.h Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
stl_tempbuf.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_tree.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stl_uninitialized.h re PR libstdc++/64657 (Support iterators with overloaded operator-comma) 2015-06-22 16:09:14 +01:00
stl_vector.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
stream_iterator.h Update copyright years. 2015-01-05 13:33:28 +01:00
streambuf.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
streambuf_iterator.h Update copyright years. 2015-01-05 13:33:28 +01:00
stringfwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
unique_ptr.h 2015-05-29 François Dumont fdumont@gcc.gnu.org> 2015-05-29 21:29:07 +00:00
unordered_map.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
unordered_set.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
uses_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_after.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_array.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_before.h Update copyright years. 2015-01-05 13:33:28 +01:00
vector.tcc Update copyright years. 2015-01-05 13:33:28 +01:00