Skip to content

Commit ae0c832

Browse files
committed
Apply some formatting suggestions
1 parent 903c78b commit ae0c832

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/oneapi/dpl/pstl/algorithm_impl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,9 @@ __pattern_bounded_copy_if(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec,
14451445

14461446
__par_backend::__buffer<bool> __mask_buf(__n);
14471447
bool* __mask = __mask_buf.get();
1448-
auto __it_pred =
1449-
[=](_RandomAccessIterator1 __it, _DifferenceType __idx) { return std::invoke(__pred, __it[__idx]); };
1448+
auto __it_pred = [=](_RandomAccessIterator1 __it, _DifferenceType __idx) {
1449+
return std::invoke(__pred, __it[__idx]);
1450+
};
14501451
return __internal::__except_handler([&__exec, __n, __first, __result, __it_pred, __mask, __n_out]() {
14511452
_DifferenceType __res_in{__n}, __res_out{__n_out};
14521453
__par_backend::__parallel_strict_scan(
@@ -1715,11 +1716,10 @@ __pattern_unique_copy(__parallel_tag<_IsVector> __tag, _ExecutionPolicy&& __exec
17151716
{
17161717
*__result++ = *__first++; // Always copy the first element
17171718
--__n;
1718-
return __parallel_selective_copy(
1719-
__tag, std::forward<_ExecutionPolicy>(__exec), __first, __n, __result,
1720-
[&__pred](_RandomAccessIterator1 __it, _DifferenceType __idx) {
1721-
return !__pred(__it[__idx], __it[__idx - 1]);
1722-
});
1719+
return __parallel_selective_copy(__tag, std::forward<_ExecutionPolicy>(__exec), __first, __n, __result,
1720+
[&__pred](_RandomAccessIterator1 __it, _DifferenceType __idx) {
1721+
return !__pred(__it[__idx], __it[__idx - 1]);
1722+
});
17231723
}
17241724
// trivial sequence - use serial algorithm
17251725
return __internal::__brick_unique_copy(__first, __last, __result, __pred, _IsVector{});

0 commit comments

Comments
 (0)