Is there a standard function that returns the position(not value) of the max element of an array of values?
For example:
Suppose I have an array like this:>
STL has a max_elements function. Here is an example: http://www.cplusplus.com/reference/algorithm/max_element/