max_element « STL Algorithms Min Max « C++






1.Find and print maximum elements in a vector
2.Use max_element to get the maximum element in a container
3.Use max_element with criteria function