for (int i : ints | std::views::filter(even) | std::views::transform(square)) { std::cout << i << ' '; }
EDIT: more specifically, you can use sort on a range now (source : https://cppreference.com):
ranges::sort(s);
[0] https://www.boost.org/doc/libs/1_72_0/libs/range/doc/html/in...
Documentation here: https://en.cppreference.com/w/cpp/ranges.
They are called "range adaptors" (weird naming IMHO).
The committee is very reluctant to break old code. That's one of the reasons the language as documented is so large.
That being said it's not clear to me what would have broken by putting sort(x) into std:: as you recommend.
EDIT: more specifically, you can use sort on a range now (source : https://cppreference.com):