WPILibC++ 2023.4.3-108-ge5452e3
max.hpp File Reference

Go to the source code of this file.

Functions

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

Function Documentation

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