| 255 | // Safe extractors |
| 256 | fl::optional<bool> as_bool() const FL_NOEXCEPT { return mValue ? mValue->as_bool() : fl::nullopt; } |
| 257 | fl::optional<i64> as_int() const FL_NOEXCEPT { |
| 258 | if (!mValue) return fl::nullopt; |
| 259 | return mValue->as_int(); |
| 260 | } |
| 261 | |
| 262 | template<typename IntType> |
| 263 | fl::optional<IntType> as_int() const FL_NOEXCEPT { |
no outgoing calls
no test coverage detected