Mandatory reference link: http://en.cppreference.com/w/cpp/algorithm/nth_element . Note linear complexity.
There's also std::partial_sort:
http://en.cppreference.com/w/cpp/algorithm/partial_sort