Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[algorithms] Move non-modifying algorithms away #1245

Merged
merged 1 commit into from Feb 4, 2017

Conversation

jensmaurer
Copy link
Member

from [alg.modifying.operations].

For is_partitioned, create a new subsection [alg.is_partitioned]
under [alg.nonmodifying].
For partition_point, create a new subsection [partition.point]
under [alg.binary.search].

Fixes #289.

@zygoloid
Copy link
Member

I'm OK with this as-is, but I wonder if perhaps we should instead move all of [alg.partitions] into [alg.sorting], since partitioning is certainly a "related operation" of sorting.

@jensmaurer
Copy link
Member Author

@jwakely: What's your opinion?

@jwakely
Copy link
Member

jwakely commented Jan 12, 2017

I think it would be better to keep all the partition-related algos together, so if moving them under [alg.sorting] allows that then that seems good to me.

The non-modifying operation is_partitioned doesn't fit into
'mutating sequence operations', and partitioning can be
considered a weak sort.

Fixes cplusplus#289.
@jensmaurer
Copy link
Member Author

jensmaurer commented Jan 12, 2017

Ok, I've moved [alg.partitions] into [alg.sorting], right after [alg.binary.search].

@jwakely, would you like to commit?

@zygoloid zygoloid merged commit 43c20db into cplusplus:master Feb 4, 2017
@jensmaurer jensmaurer deleted the b20 branch February 5, 2017 19:21
CaseyCarter added a commit to CaseyCarter/draft that referenced this pull request Jun 27, 2018
between the "binary_search" family and the "merge" family, to agree with
the order of the detailed specifiations as reordered by cplusplus#1245.

Fixes cplusplus#2218.
tkoeppe pushed a commit that referenced this pull request Jun 28, 2018
Move the synopsis for the "partitions" algorithms between the "binary_search" family and the "merge" family, to agree with the order of the detailed specifications as reordered by #1245.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants