mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
8 lines
233 B
Plaintext
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)
|
|
|