Home » U++ Library support » U++ Core » Algo.h rev6429 small bug
Algo.h rev6429 small bug [message #40964] |
Mon, 14 October 2013 19:56 |
hans
Messages: 44 Registered: March 2006 Location: Germany
|
Member |
|
|
Should be obviously:
int q = FindMin(c);
template <class C>
int Min(const C& c, const typename C::ValueType& def)
{
int q = FindMax(c);
return q < 0 ? def : c[q];
}
[Updated on: Mon, 14 October 2013 19:56] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 07:34:10 CET 2024
Total time taken to generate the page: 0.01427 seconds
|