Containers & algorithms (C++20)
contains, heterogeneous lookup for unordered containers, uniform erase/erase_if, shift_left/shift_right, to_array.
Connected features
Papers
12 · Albuquerque 2017 → Prague 2020Uses std::move in the legacy <numeric> algorithms.
Specifies comparison of unordered containers.
Adds contains() to associative containers.
Makes list::remove/unique and forward_list counterparts return the count removed.
Adds shift_left and shift_right.
Adds heterogeneous lookup for unordered containers.
Adds uniform std::erase/erase_if for containers.
Added lookup with precalculated hash values (removed again by P1661R1).
Adds std::to_array.
Removes the precalculated-hash lookup interface.
Refines heterogeneous lookup for unordered containers.
Makes the free erase/erase_if return the number of erased elements.