mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
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> |
||
|---|---|---|
| .. | ||
| etl | ||