| 473 | // Same as (value < 0) but doesn't produce warnings if T is an unsigned type. |
| 474 | template <typename T> |
| 475 | inline bool is_negative(T value) { |
| 476 | return SignChecker<std::numeric_limits<T>::is_signed>::is_negative(value); |
| 477 | } |
| 478 | |
| 479 | // Selects uint32_t if FitsIn32Bits is true, uint64_t otherwise. |
| 480 | template <bool FitsIn32Bits> |
no outgoing calls
no test coverage detected