Quote Originally Posted by Ginsengelf View Post
Hi, if you only have positive values then use std::min_element.
Yes, definitely std::min_element.

If there are negative values then with a compare function that takes the abs() for comparison

Cheers,
_