Standard C++ Library Class Reference
A partial_sort_copy of the last ten elements gives:
0 1 2 3 4 5 7 8 15 18
Warning
If your compiler does not support default template parameters, then you need to always provide the Allocator template
argument. For instance, you will need to write :
vector<int, allocator>
instead of :
vector<int>
See Also
sort_ stable_sort, partial_sort