FastLED 3.10.8
Loading...
Searching...
No Matches

◆ as_int() [3/4]

fl::optional< i64 > fl::json_value::as_int ( )
inline

Definition at line 964 of file types.h.

964 {
965 // Check if we have a valid value first
966 if (data.empty()) {
967 return fl::nullopt;
968 }
969
970 int_conversion_visitor<i64> visitor;
971 data.visit(visitor);
972 return visitor.result;
973 }
constexpr nullopt_t nullopt
Definition optional.h:13
variant_t data
Definition types.h:760

References data, fl::FL_NO_EXCEPT, fl::nullopt, and fl::int_conversion_visitor< IntType >::result.

Referenced by fl::json_value::array_iterator< T >::get_value().

+ Here is the caller graph for this function: