| 193 | }; |
| 194 | |
| 195 | struct LosslessConvertibleToUintVisitor { |
| 196 | constexpr bool operator()(double value) const { |
| 197 | return value >= 0 && value <= kMaxDoubleRepresentableAsUint && |
| 198 | value == static_cast<double>(static_cast<uint64_t>(value)); |
| 199 | } |
| 200 | constexpr bool operator()(uint64_t value) const { return true; } |
| 201 | constexpr bool operator()(int64_t value) const { return value >= 0; } |
| 202 | }; |
| 203 | |
| 204 | // Utility class for CEL number operations. |
| 205 | // |
no outgoing calls
no test coverage detected