Last active
April 9, 2023 15:44
-
-
Save yugr/4db31883cda2c2513e2705d5b3b475cb to your computer and use it in GitHub Desktop.
Example min implementation
This file contains hidden or 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
template<typename T> | |
const T &min(const T &a, const T &b) { | |
return b < a ? b : a; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment