From the usage of Sort(begin,end) it appears that by just specifying the containers beginning and ending index the function can sort a container. But my question how does the sort function gets the type of containers.
std::sort(myvector.begin(), myvector.end());
From the above code I assume the starting and end index is send. How come the vector type and the vector name is deduced.
std::sortwith astd::list