Skip to content

std.container.rbtree: Add trisect #10756

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

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

CyberShadow
Copy link
Member

Useful in case we need >= or <= (instead of > or < or = as provided by lowerBound/upperBound/equalRange).

Same convention as SortedRange.trisect, except just return a static array instead of a tuple (as the type is the same).

CC @schveiguy

Useful in case we need >= or <= (instead of > or < or = as provided by
lowerBound/upperBound/equalRange).

Same convention as SortedRange.trisect, except just return a static
array instead of a tuple (as the type is the same).
@CyberShadow CyberShadow requested a review from PetarKirov as a code owner April 19, 2025 10:16
Copy link
Member

@schveiguy schveiguy left a comment

Choose a reason for hiding this comment

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

LGTM

@thewilsonator thewilsonator merged commit 6caa5fa into dlang:master Apr 19, 2025
10 checks passed
VPanteleev-S7 pushed a commit to VPanteleev-S7/phobos that referenced this pull request Jun 5, 2025
Useful in case we need >= or <= (instead of > or < or = as provided by
lowerBound/upperBound/equalRange).

Same convention as SortedRange.trisect, except just return a static
array instead of a tuple (as the type is the same).
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.

3 participants