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

◆ is_array()

bool fl::json_value::is_array ( ) const
inline

Definition at line 919 of file types.h.

919 {
920 // FastLED #3235 Tier 2E Phase 1: replace `IsArrayVisitor` +
921 // `data.visit(visitor)` (which would emit 10 per-alternative
922 // `visit_fn<T, IsArrayVisitor>` thunks) with direct tag checks
923 // via `data.is<T>()`. Same behavior; no visitor instantiation.
924 return data.is<json_array>() ||
925 data.is<fl::vector<i16>>() ||
926 data.is<fl::vector<u8>>() ||
927 data.is<fl::vector<float>>();
928 }
fl::vector< fl::shared_ptr< json_value > > json_array
Definition types.h:54
variant_t data
Definition types.h:760

References data, and fl::FL_NO_EXCEPT.

Referenced by begin_array(), begin_array(), end_array(), end_array(), and operator[]().

+ Here is the caller graph for this function: