Commit 9aa2470a by Marc Glisse Committed by Marc Glisse

Rename __is_trivially_relocatable to __is_bitwise_relocatable.

2019-02-05  Marc Glisse  <marc.glisse@inria.fr>

	PR libstdc++/87106
	* include/bits/stl_uninitialized.h (__is_trivially_relocatable):
	Rename...
	(__is_bitwise_relocatable): ... to this.
	(__relocate_a_1): Adapt.
	* include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
	(__is_bitwise_relocatable): ... to this.

From-SVN: r268532
parent c8010d70
2019-02-05 Marc Glisse <marc.glisse@inria.fr>
PR libstdc++/87106
* include/bits/stl_uninitialized.h (__is_trivially_relocatable):
Rename...
(__is_bitwise_relocatable): ... to this.
(__relocate_a_1): Adapt.
* include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
(__is_bitwise_relocatable): ... to this.
2019-01-30 Jonathan Wakely <jwakely@redhat.com> 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/89117 PR libstdc++/89117
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
#include <bits/stl_iterator_base_funcs.h> #include <bits/stl_iterator_base_funcs.h>
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
#include <initializer_list> #include <initializer_list>
#include <bits/stl_uninitialized.h> // for __is_trivially_relocatable #include <bits/stl_uninitialized.h> // for __is_bitwise_relocatable
#endif #endif
#include <debug/assertions.h> #include <debug/assertions.h>
...@@ -2372,7 +2372,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER ...@@ -2372,7 +2372,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
// std::allocator is safe, but it is not the only allocator // std::allocator is safe, but it is not the only allocator
// for which this is valid. // for which this is valid.
template<class _Tp> template<class _Tp>
struct __is_trivially_relocatable<_GLIBCXX_STD_C::deque<_Tp>> struct __is_bitwise_relocatable<_GLIBCXX_STD_C::deque<_Tp>>
: true_type { }; : true_type { };
#endif #endif
......
...@@ -896,12 +896,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -896,12 +896,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
} }
// This class may be specialized for specific types. // This class may be specialized for specific types.
// Also known as is_trivially_relocatable.
template<typename _Tp, typename = void> template<typename _Tp, typename = void>
struct __is_trivially_relocatable struct __is_bitwise_relocatable
: is_trivial<_Tp> { }; : is_trivial<_Tp> { };
template <typename _Tp, typename _Up> template <typename _Tp, typename _Up>
inline __enable_if_t<std::__is_trivially_relocatable<_Tp>::value, _Tp*> inline __enable_if_t<std::__is_bitwise_relocatable<_Tp>::value, _Tp*>
__relocate_a_1(_Tp* __first, _Tp* __last, __relocate_a_1(_Tp* __first, _Tp* __last,
_Tp* __result, allocator<_Up>& __alloc) noexcept _Tp* __result, allocator<_Up>& __alloc) noexcept
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment