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

◆ as_impl() [8/9]

template<typename T>
fl::enable_if< fl::is_same< T, fl::vector< u8 > >::value, fl::optional< T > >::type fl::json::as_impl ( ) const
inlineprivate

Definition at line 560 of file json.h.

562 {
563 if (!mValue->is_array()) return fl::nullopt;
564 T result;
565 size_t n = mValue->copy_to_output_iterator(fl::back_inserter(result));
fl::shared_ptr< json_value > mValue
Definition json.h:263
back_insert_iterator< Container > back_inserter(Container &c) FL_NO_EXCEPT
Helper function to create a back_insert_iterator.
Definition iterator.h:139
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
constexpr nullopt_t nullopt
Definition optional.h:13

References fl::back_inserter(), fl::FL_NO_EXCEPT, fl::adl_barrier::move(), mValue, fl::nullopt, and value().

+ Here is the call graph for this function: