Różnice między wybraną wersją a wersją aktualną.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
min_element_max_element [2008/12/11 00:15] kkukolow |
min_element_max_element [2008/12/11 00:17] kkukolow |
||
---|---|---|---|
Linia 41: | Linia 41: | ||
if (first==last) return last; | if (first==last) return last; | ||
while (++first!=last) | while (++first!=last) | ||
- | if (*lowest<*first) // or: if (comp(*lowest,*first)) for the comp version | + | if (*first<*lowest) // or: if (comp(*first,*lowest)) for the comp version |
lowest=first; | lowest=first; | ||
return lowest; | return lowest; |