I can see that std::sort returns void. But now that ranges have been added to the C++20 Standard, why does std::ranges::sort return an iterator? cppreference specifies:
Return value
An iterator equal to last.
- What's the rational behind that choice?
- What's the use case advantage compared to
void?