SHARE
TWEET

Untitled

a guest Apr 18th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <type_traits>
  2. template<typename T1, typename T2>
  3. auto max (T1 a, T2 b) -> typename std::decay<decltype(b<a?a:b)>::type
  4. { return b < a ? a : b;
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top