Skip to content

Conversation

@mishasweetpie
Copy link

@mishasweetpie mishasweetpie commented Feb 16, 2024

Changed upper_bound to lower_bound since lower_bound is actually similar to std::partition_point rather than upper_bound.

From notes about std::partition point on cppreference.com

This algorithm is a more general form of std::lower_bound, which can be expressed in terms of std::partition_point with the predicate [&](auto const& e) { return e < value; });

@mishasweetpie mishasweetpie changed the title Use lower bound in notes for partition_point Use std::lower_bound in notes for std::partition_point Feb 16, 2024
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.

1 participant