cplusplus.co.il

Archive for October 2009

One-line rsort of an integer array

Posted by: rmn on: 03/10/2009

Suppose you have an array of integers and a comparator function object. We would like to have the array sorted in a reverse order.. Using only one line of code.


Follow

Get every new post delivered to your Inbox.

Join 25 other followers