News for hackers. Stuff that matters.
Re:In Defense of Linked Lists by dabitude on Saturday November 05, 2022 @02:10AM (#33478462)
These are flat_map, flat_set, flat_hash_map, etc ...

See: https://en.cppreference.com/w/cpp/header/flat_map

Re:In Defense of Linked Lists by usefulcat on Saturday November 05, 2022 @04:31AM (#33479232)
I believe that flat_map and flat_set at least are sorted, so that binary_search/lower_bound can be used for lookups.

Linear search generally does outperform for small collections though (it’s better for caches and the branch predictor).

Re:In Defense of Linked Lists by asveikau on Saturday November 05, 2022 @05:03PM (#33485712)
C++23! The future is here.