We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12593ef commit 0c84db9Copy full SHA for 0c84db9
include/swift/Basic/Algorithm.h
@@ -21,13 +21,13 @@
21
namespace swift {
22
/// Returns the minimum of `a` and `b`, or `a` if they are equivalent.
23
template <typename T>
24
- constexpr const T& min(const T &a, const T &b) {
+ constexpr const T &min(const T &a, const T &b) {
25
return !(b < a) ? a : b;
26
}
27
28
/// Returns the maximum of `a` and `b`, or `a` if they are equivalent.
29
30
- constexpr const T& max(const T &a, const T &b) {
+ constexpr const T &max(const T &a, const T &b) {
31
return (a < b) ? b : a;
32
33
} // end namespace swift
0 commit comments