etl/include
Roland Reichwein 5f33e2256d
Fix flat_map/reference_flat_map to use random-access iterators in lower_bound (#1540)
ireference_flat_map::lower_bound/upper_bound/equal_range searched over
its own bidirectional iterator/const_iterator, forcing etl::distance/
advance into an O(n) fallback even though the underlying lookup_t
(etl::ivector<value_type*>) is random access. Add pointer overloads to
the Compare functor and search directly over lookup.begin()/end(),
wrapping the result back into iterator/const_iterator.

Fixes #1518

Do the same for:
* reference_flat_multimap.h
* reference_flat_multiset.h
* reference_flat_set.h

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-08-16 17:20:44 +02:00
..
etl Fix flat_map/reference_flat_map to use random-access iterators in lower_bound (#1540) 2026-08-16 17:20:44 +02:00