| 539 | // Returns true if `x` fits in 32-bits. |
| 540 | template <typename T> |
| 541 | bool IsInt32(T x) { |
| 542 | // Following conversion rules: "the value is unchanged if it can be |
| 543 | // represented in the destination type (and bit-field width); otherwise, the |
| 544 | // value is implementation-defined." |
| 545 | return static_cast<int32>(x) == x; |
| 546 | } |
| 547 | |
| 548 | template <typename T> |
| 549 | Status EraseElementFromVector(std::vector<T>* container, const T& value) { |
no outgoing calls
no test coverage detected