Hi All,
How can I find the largest number in a multiset. In one problem, I need to find the largest number to limit the number of operations.
Thanks
Soya
multiset<int> ms;
ms.insert(1);
ms.insert(5);
ms.insert(3);
int largest = *ms.rbegin(); // largest == 5