WPILibC++ 2023.4.3
signbit.hpp File Reference

Go to the source code of this file.

Functions

template<typename T >
constexpr bool signbit (const T x) noexcept
 Compile-time sign bit detection function. More...
 

Function Documentation

◆ signbit()

template<typename T >
constexpr bool signbit ( const T  x)
constexprnoexcept

Compile-time sign bit detection function.

Parameters
xa real-valued input
Returns
return true if x is negative, otherwise return false.