Mostly the same as To , with additional check
| 1452 | |
| 1453 | // Mostly the same as To<float>, with additional check |
| 1454 | float ToFloat() const noexcept |
| 1455 | { |
| 1456 | return this->Type == LABEL ? static_cast<float>(this->Int) |
| 1457 | // NOLINTNEXTLINE(readability-avoid-nested-conditional-operator) |
| 1458 | : this->Type == SCALAR ? static_cast<float>(this->Double) |
| 1459 | : 0.0F; |
| 1460 | } |
| 1461 | |
| 1462 | // Mostly the same as To<double>, with additional check |
| 1463 | double ToDouble() const noexcept |
no outgoing calls