max three values c++

C++
    int a = 1;
    int b = 2;
    int c = 3;

    int m = std::max({a, b, c});
Source

Also in C++: