What is the difference between using sort(str.begin(), str.end())
and using sort(std::begin(str), std::end(str))
in C++?
Both of these functions gave the same result as the sorted string but is there any difference between the two, and what is the reason for having both?