fork(2) download
  1. template<typename T, typename U>
  2. auto max(T x, U y) -> decltype(x > y ? x : y)
  3. { return x > y ? x : y; }
  4.  
  5. #include <iostream>
  6. int main() {
  7. char x = 15;
  8. unsigned long long y = 4;
  9. auto result = max(x, y);
  10. ::std::cout << result << "\n";
  11. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
15