Skip to content

Commit c998b21

Browse files
Fix
1 parent bbbc02b commit c998b21

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

thrust/thrust/system/cuda/detail/extrema.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,6 @@ cub_min_element(execution_policy<Derived>& policy, ItemsIt first, ItemsIt last,
373373

374374
return first + get_value(policy, index_ptr);
375375
}
376-
377-
template <typename Predicate>
378-
struct swap_args : Predicate
379-
{
380-
template <typename T, typename U>
381-
_CCCL_API _CCCL_FORCEINLINE decltype(auto) operator()(T&& t, U&& u) const
382-
{
383-
return Predicate::operator()(::cuda::std::forward<U>(u), ::cuda::std::forward<T>(t));
384-
}
385-
};
386376
} // namespace __extrema
387377

388378
/// min element
@@ -404,7 +394,7 @@ ItemsIt _CCCL_HOST_DEVICE
404394
max_element(execution_policy<Derived>& policy, ItemsIt first, ItemsIt last, BinaryPred binary_pred = {})
405395
{
406396
THRUST_CDP_DISPATCH(
407-
({ return __extrema::cub_min_element(policy, first, last, __extrema::swap_args<BinaryPred>{binary_pred}); }),
397+
({ return __extrema::cub_min_element(policy, first, last, cub::detail::swap_args{binary_pred}); }),
408398
({ return thrust::max_element(cvt_to_seq(derived_cast(policy)), first, last, binary_pred); }));
409399
}
410400

0 commit comments

Comments
 (0)