gcc/libstdc++-v3/include/bits
Jonathan Wakely fd18c76ac8 Make std::deque meet C++11 allocator requirements.
* include/bits/deque.tcc (deque::operator=(const deque&)): Handle
	allocator propagation.
	(deque::emplace_front, deque::emplace_back): Use allocator traits.
	(deque::_M_push_back_aux, deque::_M_push_front_aux): Likewise.
	(deque::_M_pop_back_aux, deque::_M_pop_front_aux): Likewise.
	* include/bits/stl_deque.h (__deque_buf_size): Add constexpr.
	(_Deque_iterator): Handle allocators with custom pointers.
	(_Deque_base): Likewise. Use allocator traits.
	(deque): Likewise. Add allocator-extended constructors.
	(deque::_M_move_assign1, deque::_M_move_assign2): Implement move
	assignment via tag dispatching.
	(deque::_M_replace_map): Replace existing data.
	* include/debug/deque (deque): Add allocator-extended constructors.
	* include/profile/deque (deque): Likewise.
	* testsuite/23_containers/deque/allocator/copy.cc: New.
	* testsuite/23_containers/deque/allocator/copy_assign.cc: New.
	* testsuite/23_containers/deque/allocator/ext_ptr.cc: New.
	* testsuite/23_containers/deque/allocator/minimal.cc: New.
	* testsuite/23_containers/deque/allocator/move.cc: New.
	* testsuite/23_containers/deque/allocator/move_assign-2.cc: New.
	* testsuite/23_containers/deque/allocator/move_assign.cc: New.
	* testsuite/23_containers/deque/allocator/noexcept.cc: New.
	* testsuite/23_containers/deque/allocator/swap.cc: New.
	* 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/vector/52591.cc: Test both the propagating
	and always-equal cases.

From-SVN: r215090
2014-09-09 18:29:32 +01:00
..
algorithmfwd.h
alloc_traits.h alloc_traits.h (__alloc_rebind): Define alias template. 2014-06-25 21:54:34 +01:00
allocated_ptr.h allocated_ptr.h (__allocated_ptr::operator=): Add missing return. 2014-07-08 14:22:14 +01:00
allocator.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
atomic_base.h atomic_base.h (__atomic_base<_PTp*>::_M_type_size): Add const to constexpr member functions. 2014-04-15 19:28:41 +01:00
basic_ios.h
basic_ios.tcc
basic_string.h * include/bits/basic_string.h (getline): Declare inline. 2014-08-12 16:48:23 +01:00
basic_string.tcc
boost_concept_check.h
c++0x_warning.h
c++14_warning.h
c++config
char_traits.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
codecvt.h
concept_check.h
cpp_type_traits.h
deque.tcc Make std::deque meet C++11 allocator requirements. 2014-09-09 18:29:32 +01:00
enable_special_members.h
forward_list.h alloc_traits.h (__alloc_rebind): Define alias template. 2014-06-25 21:54:34 +01:00
forward_list.tcc
fstream.tcc
functexcept.h functexcept.h (__throw_out_of_range_fmt): Change attribute to __gnu_printf__ archetype to prevent warnings for "%zu". 2014-06-24 16:44:17 +01:00
functional_hash.h
gslice_array.h
gslice.h
hashtable_policy.h hashtable_policy.h (_Prime_rehash_policy): Constructor noexcept qualified. 2014-09-06 07:38:48 +00:00
hashtable.h hashtable_policy.h (_Prime_rehash_policy): Constructor noexcept qualified. 2014-09-06 07:38:48 +00:00
indirect_array.h
ios_base.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
istream.tcc
list.tcc
locale_classes.h
locale_classes.tcc
locale_facets_nonio.h
locale_facets_nonio.tcc functexcept.h (__throw_out_of_range_fmt): Change attribute to __gnu_printf__ archetype to prevent warnings for "%zu". 2014-06-24 16:44:17 +01:00
locale_facets.h
locale_facets.tcc
localefwd.h
mask_array.h
memoryfwd.h
move.h
ostream_insert.h
ostream.tcc
parse_numbers.h parse_numbers.h (_Number_help): Fix divide-by-zero. 2014-06-23 12:30:32 +01:00
postypes.h
predefined_ops.h
ptr_traits.h
random.h PR libstdc++/60037 - SIGFPE in std::generate_canonical<unsigned int...> 2014-07-29 14:56:45 +00:00
random.tcc PR libstdc++/60037 - SIGFPE in std::generate_canonical<unsigned int...> 2014-07-29 14:56:45 +00:00
range_access.h
regex_automaton.h re PR testsuite/61061 (FAIL: g++.dg/inherit/covariant7.C) 2014-07-01 03:05:45 +00:00
regex_automaton.tcc re PR testsuite/61061 (FAIL: g++.dg/inherit/covariant7.C) 2014-07-01 03:05:45 +00:00
regex_compiler.h regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted space when not using a cache. 2014-06-02 20:36:14 +01:00
regex_compiler.tcc re PR libstdc++/61424 (std::regex matches right to left, not leftmost longest) 2014-07-01 02:10:31 +00:00
regex_constants.h
regex_error.h
regex_executor.h re PR libstdc++/61424 (std::regex matches right to left, not leftmost longest) 2014-07-01 02:10:31 +00:00
regex_executor.tcc re PR libstdc++/61720 (std::regex_search matches incorrectly) 2014-07-15 04:28:51 +00:00
regex_scanner.h re PR libstdc++/61424 (std::regex matches right to left, not leftmost longest) 2014-07-01 02:10:31 +00:00
regex_scanner.tcc regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted space when not using a cache. 2014-06-02 20:36:14 +01:00
regex.h regex.h: Add/modify comments. 2014-03-15 18:16:22 +00:00
regex.tcc re PR libstdc++/61424 (std::regex matches right to left, not leftmost longest) 2014-07-01 02:10:31 +00:00
shared_ptr_base.h shared_ptr_base.h (__shared_ptr::_Deleter): Fix parameter type. 2014-06-26 13:43:59 +01:00
shared_ptr.h user.cfg.in (INPUT): Add C++14 headers. 2014-06-14 17:33:53 +01:00
slice_array.h
sstream.tcc
stl_algo.h
stl_algobase.h
stl_bvector.h
stl_construct.h
stl_deque.h Make std::deque meet C++11 allocator requirements. 2014-09-09 18:29:32 +01:00
stl_function.h
stl_heap.h
stl_iterator_base_funcs.h
stl_iterator_base_types.h
stl_iterator.h re PR libstdc++/61086 (ubsan detects undefined behaviour in the standard library) 2014-05-07 15:43:22 +01:00
stl_list.h stl_list.h (_List_base::_List_base(_List_base&&)): Optimize. 2014-08-07 18:25:13 +01:00
stl_map.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
stl_multimap.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
stl_multiset.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
stl_numeric.h
stl_pair.h
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h api.xml: Link to more recent API docs. 2014-06-14 21:22:10 +01:00
stl_stack.h
stl_tempbuf.h
stl_tree.h functexcept.h (__throw_out_of_range_fmt): Change attribute to __gnu_printf__ archetype to prevent warnings for "%zu". 2014-06-24 16:44:17 +01:00
stl_uninitialized.h
stl_vector.h re PR libstdc++/61086 (ubsan detects undefined behaviour in the standard library) 2014-05-07 15:43:22 +01:00
stream_iterator.h
streambuf_iterator.h
streambuf.tcc
stringfwd.h
unique_ptr.h
unordered_map.h hashtable_policy.h (_Prime_rehash_policy): Constructor noexcept qualified. 2014-09-06 07:38:48 +00:00
unordered_set.h hashtable_policy.h (_Prime_rehash_policy): Constructor noexcept qualified. 2014-09-06 07:38:48 +00:00
uses_allocator.h uses_allocator.h (__uses_allocator_helper): Simplify. 2014-06-01 23:35:42 +01:00
valarray_after.h
valarray_array.h
valarray_array.tcc
valarray_before.h
vector.tcc re PR libstdc++/61086 (ubsan detects undefined behaviour in the standard library) 2014-05-07 15:43:22 +01:00