Created
June 26, 2019 09:50
-
-
Save qrealka/5145659c9c92e62e9d03c7c957003850 to your computer and use it in GitHub Desktop.
tie and minmax
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
std::tie(a, b) = std::minmax({a, b}); | |
std::tie(a, b) = std::minmax(+a, +b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment