(C++) std::minmax\_element

January 11, 2018 · View on GitHub

 

 

 

 

 

(C++) std::minmax_element

 

std::minmax_element is an algorithm to obtain the minimum and maximum value from a container at the same time: std::minmax_element is a combination of std::min_element and std::max_element.

 

  • std::minmax_element example 1
  • std::minmax_element example 2