mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
329 B
329 B
| title |
|---|
| 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)
Return
true if the value is negative, otherwise false.