Closed
Description
LWG3180 states that [alg.min.max] should be updated to reflect the changes in [algorithm.syn].
The declarations of ranges::minmax_element
in [alg.min.max] should be:
template<forward_iterator I, sentinel_for<I> S, class Proj = identity,
indirect_strict_weak_order<projected<I, Proj>> Comp = ranges::less>
constexpr ranges::minmax_element_result<I>
ranges::minmax_element(I first, S last, Comp comp = {}, Proj proj = {});
template<forward_range R, class Proj = identity,
indirect_strict_weak_order<projected<iterator_t<R>, Proj>> Comp = ranges::less>
constexpr ranges::minmax_element_result<borrowed_iterator_t<R>>
ranges::minmax_element(R&& r, Comp comp = {}, Proj proj = {});
Metadata
Metadata
Assignees
Labels
No labels
Activity
ranges::minmax_element
withranges::minmax_element_result
#5376jwakely commentedon Mar 31, 2022
LWG3180 was applied in e33be08 but was incomplete, as it missed the "and adjust the declarations of std::ranges::minmax_element in 27.8.9 [alg.min.max] to agree" part.