Skip to content

Conversation

@CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Jun 24, 2020

  • ranges::min (direct, range, and initializer_list overloads)
  • ranges::max (direct, range, and initializer_list overloads)
  • ranges::minmax (direct, range, and initializer_list overloads)
  • ranges::min_element (range only)
  • ranges::max_element (range only)
  • ranges::minmax_element (range only)
  • ranges::clamp (direct only)

Implements concept indirectly_copyable_storable, and adds test coverage for both that concept and indirectly_movable_storable.

Partially addresses #39.

(Note: #914, #915, and #916 contain identical changes to <range_algorithm_support.hpp>.)

* `ranges::min` (direct, `range`, and `initializer_list` overloads)
* `ranges::max` (direct, `range`, and `initializer_list` overloads)
* `ranges::minmax` (direct, `range`, and `initializer_list` overloads)
* `ranges::min_element` (`range` only)
* `ranges::max_element` (`range` only)
* `ranges::minmax_element` (`range` only)
* `ranges::clamp` (direct only)

Implements concept `indirectly_copyable_storable`, and adds test coverage for both that concept and `indirectly_movable_storable`.
@cbezault cbezault self-assigned this Jun 24, 2020
@StephanTLavavej StephanTLavavej changed the title Implement ranges min/max/minmax algorithms: Implement ranges min/max/minmax algorithms Jun 25, 2020
@cbezault cbezault removed their assignment Jun 26, 2020
Copy link
Contributor

@mnatsuhara mnatsuhara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Impressively thorough testing :) I couldn't find much!

@CaseyCarter CaseyCarter self-assigned this Jun 29, 2020
@CaseyCarter CaseyCarter merged commit c114d51 into microsoft:master Jun 30, 2020
@CaseyCarter CaseyCarter deleted the minmax branch June 30, 2020 05:39
@CaseyCarter CaseyCarter removed their assignment Jun 30, 2020
@StephanTLavavej StephanTLavavej added the ranges C++20/23 ranges label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cxx20 C++20 feature ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants