etl/docs/raw/maths/is_negative.txt

8 lines
233 B
Plaintext

is_negative
Allows a parameter of type T to be checked for a positive or negative value, while eliminating compiler warnings for checking < 0 for unsigned types.
template <typename T>
ETL_CONSTEXPR bool is_negative(const T value)