| 286 | struct BooleanToNumber { |
| 287 | template <typename OutValue, typename Arg0Value> |
| 288 | static OutValue Call(KernelContext*, Arg0Value val, Status*) { |
| 289 | constexpr auto kOne = static_cast<OutValue>(1); |
| 290 | constexpr auto kZero = static_cast<OutValue>(0); |
| 291 | return val ? kOne : kZero; |
| 292 | } |
| 293 | }; |
| 294 | |
| 295 | template <typename O> |
nothing calls this directly
no outgoing calls
no test coverage detected