Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created January 8, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/1cfed6cff26861c804af5bb8f70873ad to your computer and use it in GitHub Desktop.
Save deque-blog/1cfed6cff26861c804af5bb8f70873ad to your computer and use it in GitHub Desktop.
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