#pragma once namespace std { // http://www.en.cppreference.com/w/cpp/algorithm/min.html template const T &min(const T &a, const T &b) { return (b < a) ? b : a; } // http://www.en.cppreference.com/w/cpp/algorithm/max.html template const T &max(const T &a, const T &b) { return (a < b) ? b : a; } } // namespace std