min of 2 numbers c++ stl code example Example: c++ min #include <algorithm> // std::min std::min(1,2);