Created
January 8, 2017 16:08
-
-
Save deque-blog/1cfed6cff26861c804af5bb8f70873ad to your computer and use it in GitHub Desktop.
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> | |
struct FindMinimum | |
{ | |
T operator()() const { return std::numeric_limits<T>::max(); } | |
T operator()(T const& current_min, T const& val) const | |
{ | |
return std::min(current_min, val); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment