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