C++ 23 · Containers and algorithms

Sort with ranges

Pass the container directly instead of a begin and end pair (C++20).

std::ranges::sort(v);

Official C++ 23 documentation

More containers and algorithms commands

All containers and algorithms commands · C++ 23 cheatsheet

Was this page helpful?