I am trying to find functions in the managed C++ that equals the 3 functions below. Though I have a problem to find these.
Would be very happy for any idéas.
max_element can ex: search through a range of elements in a std::vector<int>
and return the highest value.
min_element can ex: search through a range of elements in a std::vector<int>
and return the lowest value.
accumulate can sum a range of elements in a std::vector<int>
and return the accumulated sum.
Code:
std::max_element( start, end );
std::min_element( start, end );
std::accumulate( start, end );