4 ms·
Stepanov disagrees. You should return the second parameter if a, b are equivalent (and you should use < anyway): template<typename T> inline constexpr cons
by darkmx0z 9y ago
Stepanov disagrees. You should return the second parameter if a, b are equivalent (and you should use < anyway):
template<typename T>
inline constexpr const T& max(const T& a, const T& b) {
return (b < a ? a : b);
}