min_element
Syntax:
#include <algorithm> iterator min_element( iterator start, iterator end ); iterator min_element( iterator start, iterator end, BinPred p );
The min_element() function returns an iterator to the smallest element in the range [start,end).
If the binary predicate p is given, then it will be used instead of the < operator to determine the smallest element.
Related Topics: max, max_element, min