@@ -1494,12 +1494,7 @@ __remove_elements(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec, _RandomA
1494
1494
[=](_DifferenceType __i, _DifferenceType __len, _DifferenceType __initial) {
1495
1495
__internal::__brick_copy_by_mask (
1496
1496
__first + __i, __first + __i + __len, __result + __initial, __mask + __i,
1497
- [](_RandomAccessIterator __x, _Tp* __z) {
1498
- if constexpr (::std::is_trivial_v<_Tp>)
1499
- *__z = ::std::move (*__x);
1500
- else
1501
- ::new (::std::addressof (*__z)) _Tp (::std::move (*__x));
1502
- },
1497
+ [](_RandomAccessIterator __x, _Tp* __z) { ::new (std::addressof (*__z)) _Tp (std::move (*__x)); },
1503
1498
_IsVector{});
1504
1499
},
1505
1500
[&__m](_DifferenceType __total) { __m = __total; });
@@ -3092,10 +3087,7 @@ __pattern_inplace_merge(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec, _R
3092
3087
_Tp* __r = __buf.get ();
3093
3088
__internal::__except_handler ([&]() {
3094
3089
auto __move_values = [](_RandomAccessIterator __x, _Tp* __z) {
3095
- if constexpr (::std::is_trivial_v<_Tp>)
3096
- *__z = ::std::move (*__x);
3097
- else
3098
- ::new (::std::addressof (*__z)) _Tp (::std::move (*__x));
3090
+ ::new (std::addressof (*__z)) _Tp (std::move (*__x));
3099
3091
};
3100
3092
3101
3093
auto __move_sequences = [](_RandomAccessIterator __first1, _RandomAccessIterator __last1, _Tp* __first2) {
0 commit comments