WPILibC++ 2023.4.3
min.hpp File Reference

Go to the source code of this file.

Functions

template<typename T1 , typename T2 >
constexpr common_t< T1, T2 > min (const T1 x, const T2 y) noexcept
 Compile-time pairwise minimum function. More...
 

Function Documentation

◆ 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
xa real-valued input.
ya real-valued input.
Returns
Computes the minimum between x and y, where x and y have the same type (e.g., int, double, etc.)