Improve relocation
authorMarc Glisse <marc.glisse@inria.fr>
Thu, 22 Nov 2018 18:10:05 +0000 (19:10 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Thu, 22 Nov 2018 18:10:05 +0000 (18:10 +0000)
commitff2e7f1973807759f52808a2594e0635ced69619
tree1e01d6887f8679c8849b7d04647aed21957b9c1b
parenteeae9314d4449b765ab41a7bfbb8938d0bc83fa9
Improve relocation

2018-11-22  Marc Glisse  <marc.glisse@inria.fr>

PR libstdc++/87106
* include/bits/stl_algobase.h: Include <type_traits>.
(__niter_base): Add noexcept specification.
* include/bits/stl_deque.h: Include <bits/stl_uninitialized.h>.
(__is_trivially_relocatable): Specialize for deque.
* include/bits/stl_iterator.h: Include <type_traits>.
(__niter_base): Add noexcept specification.
* include/bits/stl_uninitialized.h (__is_trivially_relocatable):
Add parameter for meta-programming.
(__relocate_a_1, __relocate_a): Add noexcept specification.
* include/bits/stl_vector.h (__use_relocate): Test __relocate_a.

From-SVN: r266386
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/bits/stl_uninitialized.h
libstdc++-v3/include/bits/stl_vector.h