Hi, if you only have positive values then use std::min_element.
Ginsengelf
Hi, if you only have positive values then use std::min_element.
Ginsengelf
pelaoqlo (6th February 2019)
Yes, definitely std::min_element.
If there are negative values then with a compare function that takes the abs() for comparison
Cheers,
_
Bookmarks