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
This commit is contained in:
parent
c8010d70be
commit
9aa2470ab2
|
@ -1,3 +1,13 @@
|
|||
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>
|
||||
|
||||
PR libstdc++/89117
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#include <bits/stl_iterator_base_funcs.h>
|
||||
#if __cplusplus >= 201103L
|
||||
#include <initializer_list>
|
||||
#include <bits/stl_uninitialized.h> // for __is_trivially_relocatable
|
||||
#include <bits/stl_uninitialized.h> // for __is_bitwise_relocatable
|
||||
#endif
|
||||
|
||||
#include <debug/assertions.h>
|
||||
|
@ -2372,7 +2372,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
|
|||
// std::allocator is safe, but it is not the only allocator
|
||||
// for which this is valid.
|
||||
template<class _Tp>
|
||||
struct __is_trivially_relocatable<_GLIBCXX_STD_C::deque<_Tp>>
|
||||
struct __is_bitwise_relocatable<_GLIBCXX_STD_C::deque<_Tp>>
|
||||
: true_type { };
|
||||
#endif
|
||||
|
||||
|
|
|
@ -896,12 +896,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
}
|
||||
|
||||
// This class may be specialized for specific types.
|
||||
// Also known as is_trivially_relocatable.
|
||||
template<typename _Tp, typename = void>
|
||||
struct __is_trivially_relocatable
|
||||
struct __is_bitwise_relocatable
|
||||
: is_trivial<_Tp> { };
|
||||
|
||||
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,
|
||||
_Tp* __result, allocator<_Up>& __alloc) noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue