[libcxx-commits] [libcxx] [libc++] Introduce a escape hatch for the changed behavior of map and set search operations (PR #183190)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 25 05:10:12 PST 2026


================
@@ -117,6 +117,13 @@ Potentially breaking changes
   first element being returned from ``find`` will be broken, and ``lower_bound`` or ``equal_range`` should be used
   instead.
 
+- The algorithms for ``std::map`` and ``std::set`` lookup operations (``lower_bound``, ``find``, etc) were modified such
----------------
ldionne wrote:

While we did apply the same optimization to `map::find`, I am not able to reproduce the same change in behavior. So I think we might only want to document that the behavior of `lower_bound` and `upper_bound` changed.

https://github.com/llvm/llvm-project/pull/183190


More information about the libcxx-commits mailing list