summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include
Commit message (Collapse)AuthorAgeFilesLines
...
* PR libstdc++/59829redi2014-01-291-2/+19
| | | | | | | | | | | | | | | | | * include/bits/stl_vector.h (vector::data()): Call _M_data_ptr. (vector::_M_data_ptr): New overloaded functions to ensure empty vectors do not dereference the pointer. * testsuite/23_containers/vector/59829.cc: New. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207241 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/alloc_traits.h (allocator_traits::_S_allocate): Doredi2014-01-295-144/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | not use varargs when argument could be non-POD. (__alloctr_rebind_helper): Eliminate static const bool member by using true_type and false_type. (allocator_traits::__allocate_helper): Likewise. (allocator_traits::__construct_helper): Likewise. (allocator_traits::__destroy_helper): Likewise. (allocator_traits::__maxsize_helper): Likewise. (allocator_traits::__select_helper): Likewise. * include/bits/ptr_traits.h (__ptrtr_rebind_helper): Likewise. * include/bits/stl_tree.h (_Rb_tree::operator=(const _Rb_tree&)): Remove redundant condition. * include/bits/stl_vector.h (vector::operator=(const vector&)): Likewise. (_Vector_impl::_M_allocate, _Vector_impl::_M_deallocate): Use indirection through __alloc_traits. * include/ext/alloc_traits.h (__allocator_always_compares_equal): Eliminate static const bool members by using true_type and false_type. (__gnu_cxx::__alloc_traits::__is_custom_pointer): Optimize. * testsuite/util/testsuite_allocator.h (PointerBase): Define. * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc: New. * testsuite/20_util/allocator_traits/requirements/typedefs2.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207240 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-28 Jonathan Wakely <jwakely@redhat.com>redi2014-01-282-45/+84
| | | | | | | | | | | | | | | | | | | | Kyle Lippincott <spectral@google.com> PR libstdc++/59656 * include/bits/shared_ptr.h (shared_ptr): Add new non-throwing constructor and grant friendship to weak_ptr. (weak_ptr::lock()): Use new constructor. * include/bits/shared_ptr_base.h (_Sp_counted_base::_M_add_ref_lock_nothrow()): Declare new function and define specializations. (__shared_count): Add new non-throwing constructor. (__shared_ptr): Add new non-throwing constructor and grant friendship to __weak_ptr. (__weak_ptr::lock()): Use new constructor. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error. * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207180 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59215redi2014-01-271-1/+1
| | | | | | | | * include/bits/shared_ptr_base.h (_Sp_counted_base<_S_atomic>::_M_add_ref_lock()): Use relaxed atomic load. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207147 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_map.h: Remove anachronistic comment.redi2014-01-262-2/+3
| | | | | | | | | | | | * include/bits/stl_multimap.h: Add whitespace. * testsuite/23_containers/map/modifiers/emplace/1.cc: Use -std=gnu++11 instead of -std=c++11. * testsuite/23_containers/map/operators/2.cc: Likewise. * testsuite/23_containers/multimap/modifiers/emplace/1.cc: Likewise. * testsuite/23_containers/multiset/modifiers/emplace/1.cc: Likewise. * testsuite/23_containers/set/modifiers/emplace/1.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207115 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-24 Ed Smith-Rowland <3dw4rd@verizon.net>emsr2014-01-241-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/59531 * testsuite/experimental/string_view/operations/copy/char/1.cc: New. * testsuite/experimental/string_view/operations/copy/wchar_t/1.cc: New. 2014-01-24 Ed Smith-Rowland <3dw4rd@verizon.net> Peter A. Bigot <pab@pabigot.com> PR libstdc++/59531 * include/experimental/string_view (copy(_CharT*, size_type, size_type) const): Correct throw string. Correct copy start location. 2014-01-24 Ed Smith-Rowland <3dw4rd@verizon.net> Peter A. Bigot <pab@pabigot.com> PR libstdc++/59530 * include/experimental/string_view (operator[](size_type) const): Fix one-off index error in debug check. * testsuite/experimental/string_view/element_access/char/1.cc: Don't test basic_string_view at size(). * testsuite/experimental/string_view/element_access/wchar_t/1.cc: Ditto. 2014-01-24 Ed Smith-Rowland <3dw4rd@verizon.net> Peter A. Bigot <pab@pabigot.com> PR libstdc++/59529 * include/experimental/string_view (basic_string_view(const _CharT*, size_type)): Don't care if len == 0. * testsuite/experimental/string_view/operations/substr/char/1.cc: Comment out catch of out_of_range; No terminating null in basic_string_view. Check begin == end. * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207060 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59548redi2014-01-242-1/+14
| | | | | | | | | | | * include/debug/safe_base.h (_Safe_sequence_base): Define copy constructor to prevent it being implicitly defined as deleted, but do not copy anything. * include/debug/safe_unordered_base.h (_Safe_unordered_container_base): Define copy and move constructors similar to _Safe_sequence_base's. * testsuite/23_containers/unordered_map/59548.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207059 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>sje2014-01-231-0/+2
| | | | | | | | | | | | | Steve Ellcey <sellcey@mips.com> * acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam function. * configure.ac: Use GLIBCXX_CHECK_TMPNAM. * (configure, config.h.in): Regenerate. * include/c_global/cstdio: Guard ::tmpnam with _GLIBCXX_USE_TMPNAM git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207009 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59872redi2014-01-235-45/+63
| | | | | | | | | | | | | | | | | * include/bits/stl_map.h (map::operator=(map&&)): Fix comment. * include/bits/stl_multimap.h (multimap::operator=(multimap&&)): Likewise. * include/bits/stl_multiset.h (multiset::operator=(multiset&&)): Likewise. * include/bits/stl_set.h (set::operator=(set&&)): Likewise. * include/bits/stl_tree.h (_Rb_tree::_M_move_data): New overloaded functions to perform moving or copying of elements from rvalue tree. (_Rb_tree::_Rb_tree(_Rb_tree&&)): Use _M_move_data. (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Likewise. * testsuite/23_containers/map/59872.cc: New. * testsuite/23_containers/map/56613.cc: Remove duplicate include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206994 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/58764 (again)redi2014-01-222-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_list.h (list): Make default constructor's exception specification conditional. * include/bits/stl_vector.h (vector): Likewise. * testsuite/util/testsuite_allocator.h (SimpleAllocator): Add noexcept to default constructor. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/constructor_2_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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206946 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/58764redi2014-01-2217-17/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_deque.h (deque::deque(const allocator_type&): Split into separate default constructor and constructor taking allocator. * include/bits/stl_list.h (list::list(const allocator_type&): Likewise. * include/bits/stl_vector.h (vector::vector(const allocator_type&): Likewise. * include/debug/deque (deque::deque(const allocator_type&)): Likewise. * include/debug/list (list::list(const _Allocator&)): Likewise. * include/debug/map.h (map::map(const _Compare&, const _Allocator&)): Likewise. * include/debug/multimap.h (multimap::multimap(const _Compare&, const _Allocator&)): Likewise. * include/debug/set.h (set::set(const _Compare&, const _Allocator&)): Likewise. * include/debug/multiset.h (multiset::multiset(const _Compare&, const _Allocator&)): Likewise. * include/debug/vector (vector::vector(const allocator_type&)): Likewise. * include/profile/deque (deque::deque(const _Allocator&)): Likewise. * include/profile/list (list::list(const _Allocator&)): Likewise. * include/profile/map.h (map::map(const _Compare&, const _Allocator&)): Likewise. * include/profile/multimap.h (multimap::multimap(const _Compare&, const _Allocator&)): Likewise. * include/profile/set.h (set::set(const _Compare&, const _Allocator&)): Likewise. * include/profile/multiset.h (multiset::multiset(const _Compare&, const _Allocator&)): Likewise. * include/profile/vector (vector::vector(const _Allocator&)): Likewise. * testsuite/23_containers/deque/58764.cc: New. * testsuite/23_containers/list/58764.cc: New. * testsuite/23_containers/map/58764.cc: New. * testsuite/23_containers/multimap/58764.cc: New. * testsuite/23_containers/set/58764.cc: New. * testsuite/23_containers/multiset/58764.cc: New. * testsuite/23_containers/vector/58764.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/list/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/constructor_2_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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206939 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_deque.h (_Deque_impl): Move comment.redi2014-01-221-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206924 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-21 Tim Shen <timshen91@gmail.com>timshen2014-01-212-2/+2
| | | | | | | | | | * include/bits/regex.tcc: Remove incorrect `nosubs` handling. * include/bits/regex_scanner.tcc: Handle `nosubs` correctly. * testsuite/28_regex/constants/syntax_option_type.cc: Add a test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206906 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/56267redi2014-01-211-20/+0
| | | | | | | | | | | | | * include/bits/hashtable.h (__cache_default): Do not depend on whether the hash function is DefaultConstructible or CopyAssignable. (_Hashtable): Adjust static assertions. * doc/xml/manual/containers.xml (containers.unordered.cache): Update. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust dg-error line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206904 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-20 François Dumont <fdumont@gcc.gnu.org>fdumont2014-01-201-3/+6
| | | | | | | | | | | | | | | | | | * scripts/create_testsuite_files: Add testsuite/experimental in the list of folders to search for tests. * include/experimental/string_view (basic_string_view<>::operator[]): Comment _GLIBCXX_DEBUG_ASSERT, incompatible with constexpr qualifier. (basic_string_view<>::front()): Likewise. (basic_string_view<>::back()): Likewise. * testsuite/experimental/string_view/element_access/wchar_t/2.cc: Merge dg-options directives into one. * testsuite/experimental/string_view/element_access/char/2.cc: Likewise. Remove invalid experimental namespace scope on string_view_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206859 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/56267redi2014-01-204-26/+114
| | | | | | | | | | | | | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Hash_code_base<... false>): Grant friendship to _Local_iterator_base<..., false>. (_Local_iterator_base): Give protected access to all existing members. (_Local_iterator_base::_M_curr()): New public accessor. (_Local_iterator_base::_M_get_bucket()): New public accessor. (_Local_iterator_base<..., false>::_M_init()): New function to manage the lifetime of the _Hash_code_base explicitly. (_Local_iterator_base<..., false>::_M_destroy()): Likewise. (_Local_iterator_base<..., false>): Define copy constructor and copy assignment operator that use new functions to manage _Hash_code_base. (operator==(const _Local_iterator_base&, const _Local_iterator_base&), operator==(const _Local_iterator_base&, const _Local_iterator_base&)): Use public API for _Local_iterator_base. * include/debug/safe_local_iterator.h (_Safe_local_iterator): Likewise. * include/debug/unordered_map (__debug::unordered_map::erase(), __debug::unordered_multimap::erase()): Likewise. * include/debug/unordered_set (__debug::unordered_set::erase(), __debug::unordered_multiset::erase()): Likewise. * testsuite/23_containers/unordered_set/56267-2.cc: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206834 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-19 Tim Shen <timshen91@gmail.com>timshen2014-01-192-3/+6
| | | | | | | | | | | * include/bits/regex_compiler.h (_Comipler<>::_M_quantifier()): Fix parse error of multiple consecutive quantifiers like "a**". * include/bits/regex_compiler.tcc (_Comipler<>::_M_quantifier()): Likewise. * testsuite/28_regex/basic_regex/multiple_quantifiers.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206783 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-17 François Dumont <fdumont@gcc.gnu.org>fdumont2014-01-174-77/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/profile/set.h (set): Implement C++11 allocator-aware container requirements. * include/profile/map.h (map): Likewise. * include/profile/multiset.h (multiset): Likewise. * include/profile/multimap.h (multimap): Likewise. * include/profile/set.h (set::operator=(const set&)): Define as default in C++11 mode. (set::operator=(set&&)): Likewise. * include/profile/map.h (map::operator=(const map&)): Likewise. (map::operator=(map&&)): Likewise. * include/profile/multiset.h (multiset::operator=(const multiset&)): Likewise. (multiset::operator=(multiset&&)): Likewise. * include/profile/multimap.h (multimap::operator=(const multimap&)): Likewise. (multimap::operator=(multimap&&)): Likewise. * include/profile/set.h (set::operator=(std::initializer_list<>)): Rely on the same operator from normal mode. * include/profile/map.h (map::operator=(std::initializer_list<>)): Likewise. * include/profile/multiset.h (multiset::operator=(std::initializer_list<>)): Likewise. * include/profile/multimap.h (multimap::operator=(std::initializer_list<>)): Likewise. * include/profile/set.h (set::swap(set&)): Add noexcept specification. * include/profile/map.h (map::swap(map&)): Likewise. * include/profile/multiset.h (multiset::swap(multiset&)): Likewise. * include/profile/multimap.h (multimap::swap(multimap&)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206733 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-17 Tim Shen <timshen91@gmail.com>timshen2014-01-1610-487/+545
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/regex_automaton.tcc (_StateSeq<>::_M_clone()): Do not use std::map. * include/bits/regex_automaton.h: Do not use std::set. * include/bits/regex_compiler.h (_BracketMatcher<>::_M_add_char(), _BracketMatcher<>::_M_add_collating_element(), _BracketMatcher<>::_M_add_equivalence_class(), _BracketMatcher<>::_M_make_range()): Likewise. * include/bits/regex_compiler.tcc (_BracketMatcher<>::_M_apply()): Likewise. * include/bits/regex_executor.h: Do not use std::queue. * include/bits/regex_executor.tcc (_Executor<>::_M_main(), _Executor<>::_M_dfs()): Likewise. * include/std/regex: Remove <map>, <set> and <queue>. 2014-01-17 Tim Shen <timshen91@gmail.com> * include/bits/regex.h (__compile_nfa<>(), basic_regex<>::basic_regex(), basic_regex<>::assign()): Change __compile_nfa to accept const _CharT* only. * include/bits/regex_compiler.h: Change _Compiler's template argument from <_FwdIter, _TraitsT> to <_TraitsT>. * include/bits/regex_compiler.tcc: Likewise. 2014-01-17 Tim Shen <timshen91@gmail.com> * include/bits/regex_compiler.h: Change _ScannerT into char-type templated. * include/bits/regex_scanner.h (_Scanner<>::_Scanner()): Separate _ScannerBase from _Scanner; Change _Scanner's template argument from _FwdIter to _CharT. Avoid use of std::map and std::set by using arrays instead. * include/bits/regex_scanner.tcc (_Scanner<>::_Scanner(), _Scanner<>::_M_scan_normal(), _Scanner<>::_M_eat_escape_ecma(), _Scanner<>::_M_eat_escape_posix(), _Scanner<>::_M_eat_escape_awk()): Likewise. * include/std/regex: Add <cstring> for using strchr. 2014-01-17 Tim Shen <timshen91@gmail.com> * bits/regex_automaton.tcc: Indentation fix. * bits/regex_compiler.h (__compile_nfa<>(), _Compiler<>, _RegexTranslator<> _AnyMatcher<>, _CharMatcher<>, _BracketMatcher<>): Add bool option template parameters and specializations to make matching more efficient and space saving. * bits/regex_compiler.tcc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206690 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-15 François Dumont <fdumont@gcc.gnu.org>fdumont2014-01-152-9/+13
| | | | | | | | | | | | | | | * include/bits/hashtable_policy.h: Fix some long lines. * include/bits/hashtable.h (__hash_code_base_access): Define and use it to check its _M_bucket_index noexcept qualification. Use also in place of... (__access_protected_ctor): ...this. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adapt line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206632 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-13 François Dumont <fdumont@gcc.gnu.org>fdumont2014-01-134-28/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/debug/set.h (set): Implement C++11 allocator-aware container requirements. * include/debug/map.h (map): Likewise. * include/debug/multiset.h (multiset): Likewise. * include/debug/multimap.h (multimap): Likewise. * include/debug/set.h (set::operator=(set&&)): Add noexcept and fix implementation regarding management of safe iterators. * include/debug/map.h (map::operator=(map&&)): Likewise. * include/debug/multiset.h (multiset::operator=(multiset&&)): Likewise. * include/debug/multimap.h (multimap::operator=(multimap&&)): Likewise. * include/debug/set.h (set::operator=(std::initializer_list<>)): Rely on the same operator from normal mode. * include/debug/map.h (map::operator=(std::initializer_list<>)): Likewise. * include/debug/multiset.h (multiset::operator=(std::initializer_list<>)): Likewise. * include/debug/multimap.h (multimap::operator=(std::initializer_list<>)): Likewise. * include/debug/set.h (set::swap(set&)): Add noexcept specification, add allocator equality check. * include/debug/map.h (map::swap(map&)): Likewise. * include/debug/multiset.h (multiset::swap(multiset&)): Likewise. * include/debug/multimap.h (multimap::swap(multimap&)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206588 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59738redi2014-01-091-1/+2
| | | | | | | * include/bits/stl_vector.h (vector<>::_M_move_assign): Restore support for non-Movable types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206480 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-08 François Dumont <fdumont@gcc.gnu.org>fdumont2014-01-083-11/+24
| | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_vector.h (std::vector<>::_M_move_assign): Pass *this allocator instance when building temporary vector instance so that *this allocator does not get moved. * include/debug/safe_base.h (_Safe_sequence_base(_Safe_sequence_base&&)): New. * include/debug/vector (__gnu_debug::vector<>(vector&&)): Use new move constructor from _Safe_sequence_base. (__gnu_debug::vector<>(vector&&, const allocator_type&)): Swap safe iterators if the instance is moved. (__gnu_debug::vector<>::operator=(vector&&)): Likewise. * testsuite/23_containers/vector/allocator/move.cc (test01): Add check on a vector iterator. * testsuite/23_containers/vector/allocator/move_assign.cc (test02): Likewise. (test03): New, test with a non-propagating allocator. * testsuite/23_containers/vector/debug/move_assign_neg.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206444 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-01-07 Tim Shen <timshen91@gmail.com>timshen2014-01-075-81/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/regex_compiler.h (_AnyMatcher<>::_AnyMatcher(), _AnyMatcher<>::operator(), _AnyMatcher<>::_M_apply(), _CharMatcher<>::_CharMatcher(), _CharMatcher<>::_M_translate(), _BracketMatcher<>::_BracketMatcher(), _BracketMatcher<>::operator(), _BracketMatcher<>::_M_add_char(), _BracketMatcher<>::_M_add_collating_element(), _BracketMatcher<>::_M_add_equivalence_class(), _BracketMatcher<>::_M_add_character_class(), _BracketMatcher<>::_M_make_range(), _BracketMatcher<>::_M_ready(), _BracketMatcher<>::_M_apply(), _BracketMatcher<>::_M_make_cache()): Fix _AnyMatcher behavior of POSIX style and move _M_flags to template parameter; Add cache for _BracketMatcher. Adjust declarations from here... * include/bits/regex.h (basic_regex<>::imbue()): ...to here. Also, imbuing a regex will trigger a recompilation to rebuild the cache. * include/bits/regex_compiler.tcc (_Compiler<>::_M_atom(), _Compiler<>::_M_bracket_expression()): Adjust matchers' caller for different template bool parameters. * include/bits/regex_executor.h: Remove unnecessary declarations. * include/std/regex: Adjust including orders. * testsuite/28_regex/traits/char/user_defined.cc: New. * testsuite/28_regex/traits/wchar_t/user_defined.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206400 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright years in libstdc++-v3/rsandifo2014-01-02709-709/+709
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206301 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-12-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-12-101-2/+2
| | | | | | | | | * testsuite/20_util/is_base_of/value.cc: Add test. * include/std/fstream: Tiny formatting tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205851 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-12-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-12-092-4/+7
| | | | | | | | | | | | | PR libstdc++/59427 * include/bits/fstream.tcc (basic_filebuf<>::overflow, basic_filebuf<>::xsputn): Per lwg/596, ios_base::app implies ios_base:out. * include/std/fstream (basic_filebuf<>::_M_set_buffer): Likewise. * testsuite/27_io/basic_filebuf/sputc/char/59427.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/59427.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205837 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/fstream (basic_filebuf::open): Use preformatted textredi2013-12-031-1/+3
| | | | | | for table in Doxygen comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205631 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-12-03 Tim Shen <timshen91@gmail.com>timshen2013-12-032-0/+5
| | | | | | | | * regex_compiler.h: Add todo comment. * regex_executor.tcc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205624 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-22 François Dumont <fdumont@gcc.gnu.org>fdumont2013-11-224-53/+44
| | | | | | | | | | | | * include/debug/safe_local_iterator.h (_Safe_local_iterator<>): Remove _M_bucket, use same information in normal local_iterator. (operator==): Remove redundant _M_can_compare check. * include/debug/safe_local_iterator.tcc: Adapt. * include/debug/unordered_set: Likewise. * include/debug/unordered_map: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205289 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59247redi2013-11-225-6/+13
| | | | | | | | | | | | | * include/bits/c++config (_GLIBCXX_INLINE_VERSION): Declare namespace std::experimental::__7 as inline. * include/bits/regex.h (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Do not enclose namespace __detail. * include/bits/regex.tcc (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. * include/std/iomanip (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise. * include/ext/pb_ds/tag_and_trait.hpp (detail): Fix comment. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205277 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>emsr2013-11-212-7/+23
| | | | | | | | | | | | | | | | * include/experimental/string_view: Rep empty string with unit-length static constexpr string. Uncomment _GLIBCXX_VISIBILITY. Enforce invariant of no nullptr string pointer. * include/experimental/string_view.tcc: Ditto. * testsuite/experimental/string_view/cons/char/1.cc: data() for empty string_view is no longer nullptr. * testsuite/experimental/string_view/cons/wchar_t/1.cc: Ditto. * testsuite/experimental/string_view/operations/data/char/1.cc: Ditto. * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205213 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>emsr2013-11-212-1/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | Implement __gnu_cxx::hypergeometric_distribution. * include/ext/random: Add hypergeometric_distribution. * include/ext/random.tcc: Add hypergeometric_distribution. * testsuite/util/testsuite_random.h (hypergeometric_pdf): New pdf for the hypergeometric discreet distribution; (lbincoef): New supporting function for binomial coefficients. * testsuite/ext/random/hypergeometric_distribution/operators/ serialize.cc: New. * testsuite/ext/random/hypergeometric_distribution/operators/ equal.cc: New. * testsuite/ext/random/hypergeometric_distribution/operators/ inequal.cc: New. * testsuite/ext/random/hypergeometric_distribution/operators/ values.cc: New. * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc: New. * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: New. * testsuite/ext/random/hypergeometric_distribution/requirements/ explicit_instantiation/1.cc: New. * testsuite/ext/random/hypergeometric_distribution/requirements/ typedefs.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205212 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/49204redi2013-11-201-27/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/future (__future_base::_State_base): Rename to __future_base::_State_baseV2. (__future_base::_State_baseV2::~_State_baseV2): Define as defaulted. (__future_base::_State_baseV2::_M_run_deferred): Rename to _M_complete_async. (__future_base::_State_baseV2::_M_has_deferred): Add new virtual. (__future_base::_State_baseV2::wait_for): Call _M_has_deferred() to test for a deferred function, or call _M_complete_async() to join an async thread that has made the shared state ready. (__future_base::_State_baseV2::wait_until): Likewise. (__future_base::_Async_state_common): Rename to _Async_state_commonV2. (__future_base::_Async_state_commonV2::_M_run_deferred): Rename to _M_complete_async. * src/c++11/compatibility-thread-c++0x.cc (__future_base::_State_base): Export old definition. (__future_base::_Async_state_common): Likewise. * src/c++11/future.cc (__future_base::_State_base::~_State_base): Remove. * doc/xml/manual/status_cxx2011.xml: Update status. * testsuite/30_threads/async/async.cc: Test future_status::timeout and future_status::ready. * testsuite/30_threads/async/sync.cc: Test future_status::deferred. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205144 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/59173redi2013-11-201-1/+1
| | | | | | | * include/ext/pointer.h (pointer_traits<>::rebind<>): Add template keyword in nested name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205114 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-19 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-11-191-8/+4
| | | | | | | | | | | * include/experimental/string_view (_S_max_size): Remove. (basic_string_view<>::max_size): Adjust. * testsuite/experimental/string_view/capacity/1.cc: Clean-up. * testsuite/experimental/string_view/inserters/pod/10081-out.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205033 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/shared_ptr_base.h (_Sp_counted_base<_S_single>): Useredi2013-11-181-5/+38
| | | | | | | | non-atomic operations. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number. * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204949 138bc75d-0d04-0410-961f-82ee72b054a4
* I forgot the ChangeLog and a comment fix for my last checkin.emsr2013-11-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204912 138bc75d-0d04-0410-961f-82ee72b054a4
* Changed reference to Ch21 Strings in comments in experimental/string_view*.emsr2013-11-161-1/+1
| | | | | | | Forgot this in the main patch. Sorry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204903 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-16 Edward Smith-Rowland <3dw4rd@verizon.net>emsr2013-11-164-2/+933
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement N3762 string_view: a non-owning reference to a string. * include/Makefile.am: Add string_view and string_view.tcc. * include/Makefile.in: Regenerate. * include/experimental/string_view: Implement basic_string_view. * include/experimental/string_view.tcc: Implement basic_string_view. * testsuite/experimental/string_view/capacity/1.cc: New. * testsuite/experimental/string_view/cons/char/1.cc: New. * testsuite/experimental/string_view/cons/char/2.cc: New. * testsuite/experimental/string_view/cons/char/3.cc: New. * testsuite/experimental/string_view/cons/wchar_t/1.cc: New. * testsuite/experimental/string_view/cons/wchar_t/2.cc: New. * testsuite/experimental/string_view/cons/wchar_t/3.cc: New. * testsuite/experimental/string_view/element_access/char/1.cc: New. * testsuite/experimental/string_view/element_access/char/2.cc: New. * testsuite/experimental/string_view/element_access/char/empty.cc: New. * testsuite/experimental/string_view/element_access/char/front_back.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/1.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/2.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/empty.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/ front_back.cc: New. * testsuite/experimental/string_view/include.cc: New. * testsuite/experimental/string_view/inserters/char/1.cc: New. * testsuite/experimental/string_view/inserters/char/2.cc: New. * testsuite/experimental/string_view/inserters/char/3.cc: New. * testsuite/experimental/string_view/inserters/pod/10081-out.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/1.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/2.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/3.cc: New. * testsuite/experimental/string_view/literals/types.cc: New. * testsuite/experimental/string_view/literals/values.cc: New. * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc: New. * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ 1.cc: New. * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc: New. * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ 1.cc: New. * testsuite/experimental/string_view/operations/compare/char/1.cc: New. * testsuite/experimental/string_view/operations/compare/char/13650.cc: New. * testsuite/experimental/string_view/operations/compare/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/compare/wchar_t/ 13650.cc: New. * testsuite/experimental/string_view/operations/data/char/1.cc: New. * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/find/char/1.cc: New. * testsuite/experimental/string_view/operations/find/char/2.cc: New. * testsuite/experimental/string_view/operations/find/char/3.cc: New. * testsuite/experimental/string_view/operations/find/char/4.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: New. * testsuite/experimental/string_view/operations/rfind/char/1.cc: New. * testsuite/experimental/string_view/operations/rfind/char/2.cc: New. * testsuite/experimental/string_view/operations/rfind/char/3.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: New. * testsuite/experimental/string_view/operations/substr/char/1.cc: New. * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc: New. * testsuite/experimental/string_view/operators/char/2.cc: New. * testsuite/experimental/string_view/operators/wchar_t/2.cc: New. * testsuite/experimental/string_view/range_access/char/1.cc: New. * testsuite/experimental/string_view/range_access/wchar_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char16_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char32_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/wchar_t/1.cc: New. * testsuite/experimental/string_view/requirements/typedefs.cc: New. * testsuite/experimental/string_view/types/1.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204902 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:redi2013-11-151-1/+12
| | | | | | | | Define. (vector<bool>::emplace()): Likewise. * testsuite/23_containers/vector/bool/emplace.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204851 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-15 Ondřej Bílka <neleai@seznam.cz>redi2013-11-153-6/+6
| | | | | | | | | | | | | | | | | | | Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/build_hacking.xml: Fix documentation typos. * doc/xml/manual/configure.xml: Likewise. * include/bits/atomic_base.h: Fix typos in comments. * include/bits/random.h: Likewise. * include/ext/cast.h: Likewise. * libsupc++/cxxabi.h: Likewise. * testsuite/ext/pb_ds/example/hash_illegal_resize.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/testcase.h: Likewise. * testsuite/util/exception/safety.h: Likewise. * testsuite/util/testsuite_containers.h: Likewise. * testsuite/util/testsuite_hooks.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204850 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_map.h (map): Implement C++11 allocator-awareredi2013-11-158-94/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | container requirements. * include/bits/stl_multimap.h (multimap): Likewise. * include/bits/stl_multiset.h (multiset): Likewise. * include/bits/stl_set.h (set): Likewise. * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_buffer and add accessors for value. (_Rb_tree_iterator, _Rb_tree_const_iterator): Use _Rb_tree_node accessors. (_Rb_tree): Use allocator_traits and implement support for sets and maps the be allocator-aware. * include/bits/forward_list.h (_Fwd_list_base::_M_create_node): Do not zero-initialize storage buffer. * include/bits/hashtable_policy.h (_Hashtable_alloc::_M_allocate_node): Likewise. * include/bits/stl_vector.h (vector(vector&&, const allocator_type&)): Add conditional noexcept specification. * doc/xml/manual/status_cxx2011.xml: Update status of containers. * testsuite/util/testsuite_allocator.h: Re-indent. * testsuite/23_containers/forward_list/allocator/copy.cc: Test allocator-extended copy constructor. * testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise. * testsuite/23_containers/unordered_multimap/allocator/copy.cc: Likewise. * testsuite/23_containers/unordered_multiset/allocator/copy.cc: Likewise. * testsuite/23_containers/unordered_set/allocator/copy.cc: Likewise. * testsuite/23_containers/vector/allocator/copy.cc: Likewise. * testsuite/23_containers/forward_list/allocator/move.cc: New. * testsuite/23_containers/unordered_map/allocator/move.cc: New. * testsuite/23_containers/unordered_multimap/allocator/move.cc: New. * testsuite/23_containers/unordered_multiset/allocator/move.cc: New. * testsuite/23_containers/unordered_set/allocator/move.cc: New. * testsuite/23_containers/vector/allocator/move.cc: New. * testsuite/23_containers/map/allocator/copy.cc: New. * testsuite/23_containers/map/allocator/copy_assign.cc: New. * testsuite/23_containers/map/allocator/minimal.cc: New. * testsuite/23_containers/map/allocator/move.cc: New. * testsuite/23_containers/map/allocator/move_assign.cc: New. * testsuite/23_containers/map/allocator/noexcept.cc: New. * testsuite/23_containers/map/allocator/swap.cc: New. * testsuite/23_containers/multimap/allocator/copy.cc: New. * testsuite/23_containers/multimap/allocator/copy_assign.cc: New. * testsuite/23_containers/multimap/allocator/minimal.cc: New. * testsuite/23_containers/multimap/allocator/move.cc: New. * testsuite/23_containers/multimap/allocator/move_assign.cc: New. * testsuite/23_containers/multimap/allocator/noexcept.cc: New. * testsuite/23_containers/multimap/allocator/swap.cc: New. * testsuite/23_containers/multiset/allocator/copy.cc: New. * testsuite/23_containers/multiset/allocator/copy_assign.cc: New. * testsuite/23_containers/multiset/allocator/minimal.cc: New. * testsuite/23_containers/multiset/allocator/move.cc: New. * testsuite/23_containers/multiset/allocator/move_assign.cc: New. * testsuite/23_containers/multiset/allocator/noexcept.cc: New. * testsuite/23_containers/multiset/allocator/swap.cc: New. * testsuite/23_containers/set/allocator/copy.cc: New. * testsuite/23_containers/set/allocator/copy_assign.cc: New. * testsuite/23_containers/set/allocator/minimal.cc: New. * testsuite/23_containers/set/allocator/move.cc: New. * testsuite/23_containers/set/allocator/move_assign.cc: New. * testsuite/23_containers/set/allocator/noexcept.cc: New. * testsuite/23_containers/set/allocator/swap.cc: New. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204848 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/alloc_traits.h (__allow_copy_cons): Remove.redi2013-11-143-22/+4
| | | | | | | | | | | | | | | | (__check_copy_constructible): Likewise. * include/bits/unordered_map.h (unordered_map, unordered_multimap): Do not derive from __check_copy_constructible. * include/bits/unordered_set.h (unordered_set, unordered_multiset): Likewise. * testsuite/23_containers/unordered_map/55043.cc: It is no longer necessary for is_copy_constructible to be correct to use nested unordered containers. * testsuite/23_containers/unordered_multimap/55043.cc: Likewise. * testsuite/23_containers/unordered_set/55043.cc: Likewise. * testsuite/23_containers/unordered_multiset/55043.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204790 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-13 Marc Glisse <marc.glisse@inria.fr>glisse2013-11-131-16/+18
| | | | | | | | PR libstdc++/59087 * include/ext/pod_char_traits.h: Uglify V, I and S. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204750 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/54562redi2013-11-111-14/+10
| | | | | | | | | | | | * include/std/mutex (__timed_mutex_impl::__clock_t): Use high_resolution_clock for absolute timeouts, because pthread_mutex_timedlock uses CLOCK_REALTIME not CLOCK_MONOTONIC. (__timed_mutex_impl::_M_try_lock_for): Use steady_clock for relative timeouts as per [thread.req.timing]. (__timed_mutex_impl::_M_try_lock_until<Clock,Duration>): Convert to __clock_t time point instead of using _M_try_lock_for. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204672 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/58982redi2013-11-092-6/+42
| | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_algobase.h (__copy_move::__copy_m): Use assertion to prevent using memmove() on non-assignable types. (__copy_move_backward::__copy_move_b): Likewise. * include/bits/stl_uninitialized.h (uninitialized_copy uninitialized_copy_n, uninitialized_fill, uninitialized_fill_n, __uninitialized_default, __uninitialized_default_n): Check for assignable as well as trivial. * testsuite/20_util/specialized_algorithms/uninitialized_copy/ 58982.cc: New. * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/ 58982.cc: New. * testsuite/20_util/specialized_algorithms/uninitialized_fill/ 58982.cc: New. * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/ 58982.cc: New. * testsuite/25_algorithms/copy/58982.cc: New. * testsuite/25_algorithms/copy_n/58982.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204615 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-11-08 François Dumont <fdumont@gcc.gnu.org>fdumont2013-11-085-121/+119
| | | | | | | | | | | | | | | | | | | | | | | * include/debug/safe_iterator.h (_BeforeBeginHelper<>::_S_Is): Take only a const safe iterator reference. (_BeforeBeginHelper<>::_S_Is_beginnest): Likewise. (__get_distance): Take only one type of iterator. (_Safe_iterator<>::_M_valid_range<>): Not template anymore. (_Safe_iterator<>::_M_get_sequence()): Return pointer to const sequence from a const_iterator and a pointer to sequence from an iterator. * include/debug/safe_iterator.tcc: Adapt. * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_M_valid_range<>): Not template anymore. (_Safe_local_iterator<>::_M_get_sequence()): Return pointer to const sequence from a const_iterator and a pointer to sequence from an iterator. * include/debug/safe_local_iterator.tcc: Adapt. * include/debug/forward_list (_BeforeBeginHelper<std::__debug::forward_list<>>): Adapt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204598 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/regex_compiler.h (__detail::__has_contiguous_iter):redi2013-11-081-2/+7
| | | | | | vector<bool> storage is not contiguous. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204582 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/regex_compiler.h (__detail::__compile_nfa): Overloadredi2013-11-081-1/+43
| | | | | | | so that std::basic_string<C> and std::vector<C> iterators dispatch to the const C* compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204574 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud