J
JDT
Hi,
Can someone provide me an example that uses std::max_element()
(probablly the predicate version) to return the max "absolute" integer
in a vector? Your help is much appreciated.
Tony
ps.
// return the max integer in a vector
std::vector<int> m;
....
std::vector<int>::iterator p = std::max_element(m.begin(), m.end());
Can someone provide me an example that uses std::max_element()
(probablly the predicate version) to return the max "absolute" integer
in a vector? Your help is much appreciated.
Tony
ps.
// return the max integer in a vector
std::vector<int> m;
....
std::vector<int>::iterator p = std::max_element(m.begin(), m.end());