What is the complexity of std::sort() in the C++ Standard Library? Which sort is applied? Is there any rule of applying any particular sorting algorithm there?<
std::sort()
The complexity is O(n log n). Some common implementations use introsort as far as I know:
O(n log n)
http://en.wikipedia.org/wiki/Introsort