Last active
November 23, 2016 00:15
-
-
Save picanumber/893d8d349e22d7c166c735313ad971d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Max | |
{ | |
template <class T1, class T2> | |
constexpr decltype(auto) operator()(T1&& lhs, T2&& rhs) | |
{ | |
return lhs > rhs ? std::forward<T1>(lhs) : std::forward<T2>(rhs); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment