Skip to content

Conversation

@CaseyCarter
Copy link
Contributor

ranges::is_heap, ranges::is_heap_until, ranges::make_heap, ranges::push_heap, ranges::pop_heap, and ranges::sort_heap.

Partially addresses #39.

@CaseyCarter CaseyCarter added the cxx20 C++20 feature label Jun 27, 2020
@CaseyCarter CaseyCarter requested a review from a team as a code owner June 27, 2020 15:08
`ranges::is_heap`, `ranges::is_heap_until`, `ranges::make_heap`, `ranges::push_heap`, `ranges::pop_heap`, and `ranges::sort_heap`.
Copy link
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

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

Some smaller nits, I havent really looked at the algortihm itself

* Extend `_Rewrap_subrange` to accept a range for its first parameter in addiiton to the existing iterator support.

* Add `_Rewrap_iterator`, similar to `_Rewrap_subrange`.
@StephanTLavavej StephanTLavavej changed the title Implement heap algorithm family: Implement ranges heap algorithms Jun 29, 2020
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

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

Looks good to me - a few superficial comments and one "let's clean up more warning suppressions".

@mnatsuhara mnatsuhara self-assigned this Jul 1, 2020
@CaseyCarter CaseyCarter merged commit 585583b into microsoft:master Jul 2, 2020
@CaseyCarter CaseyCarter deleted the heap branch July 2, 2020 14:36
@CaseyCarter
Copy link
Contributor Author

Thanks for contributing a whole heap of <algorithm>s!

@CaseyCarter CaseyCarter removed their assignment Jul 2, 2020
fengjixuchui added a commit to fengjixuchui/STL that referenced this pull request Jul 2, 2020
Implement ranges heap algorithms (microsoft#930)
@miscco miscco mentioned this pull request Jul 3, 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.

4 participants