Skip to content

Commit 4cfa8ee

Browse files
Apply clang-format and refine type deduction
1 parent efd8f79 commit 4cfa8ee

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

  • libs/core/algorithms/include/hpx/parallel/algorithms

libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ namespace hpx::parallel {
446446

447447
using source_iter_type =
448448
typename std::iterator_traits<FwdIter>::value_type;
449-
using element_type = hpx::traits::proxy_value_t<std::decay_t<
450-
hpx::util::invoke_result_t<Proj,
449+
using element_type = hpx::traits::proxy_value_t<
450+
std::decay_t<hpx::util::invoke_result_t<Proj,
451451
hpx::traits::iter_reference_t<source_iter_type>>>>;
452452

453453
element_type value = HPX_INVOKE(proj, *smallest);
@@ -602,8 +602,8 @@ namespace hpx::parallel {
602602

603603
using source_iter_type =
604604
typename std::iterator_traits<FwdIter>::value_type;
605-
using element_type = hpx::traits::proxy_value_t<std::decay_t<
606-
hpx::util::invoke_result_t<Proj,
605+
using element_type = hpx::traits::proxy_value_t<
606+
std::decay_t<hpx::util::invoke_result_t<Proj,
607607
hpx::traits::iter_reference_t<source_iter_type>>>>;
608608

609609
element_type value = HPX_INVOKE(proj, *largest);
@@ -763,12 +763,11 @@ namespace hpx::parallel {
763763

764764
auto result = *it;
765765

766-
using source_iter_type = decltype(
767-
std::declval<typename std::iterator_traits<PairIter>::
768-
value_type>()
766+
using source_iter_type = decltype(std::declval<
767+
typename std::iterator_traits<PairIter>::value_type>()
769768
.min);
770-
using element_type = hpx::traits::proxy_value_t<std::decay_t<
771-
hpx::util::invoke_result_t<Proj,
769+
using element_type = hpx::traits::proxy_value_t<
770+
std::decay_t<hpx::util::invoke_result_t<Proj,
772771
hpx::traits::iter_reference_t<source_iter_type>>>>;
773772

774773
element_type min_value = HPX_INVOKE(proj, *result.min);

0 commit comments

Comments
 (0)