Go to the source code of this file.
|
template<typename T1 , typename T2 > |
constexpr common_t< T1, T2 > | max (const T1 x, const T2 y) noexcept |
| Compile-time pairwise maximum function. More...
|
|
◆ max()
template<typename T1 , typename T2 >
constexpr common_t< T1, T2 > max |
( |
const T1 |
x, |
|
|
const T2 |
y |
|
) |
| |
|
constexprnoexcept |
Compile-time pairwise maximum function.
- Parameters
-
x | a real-valued input. |
y | a real-valued input. |
- Returns
- Computes the maximum between
x
and y
, where x
and y
have the same type (e.g., int
, double
, etc.)