(C++) std::min

January 9, 2018 · View on GitHub

 

 

 

 

 

(C++) std::min

 

Standard algorithm to get the lowest of two values. To get the highest of two values, use std::max.

 


int main() {   const int a = 7;   const int b = 5;   const int lowest = std::min(a,b); }