FastLED 3.9.15
Loading...
Searching...
No Matches

◆ as_impl() [7/9]

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

Definition at line 390 of file json.h.

392 {
393 if (!mValue->is_array()) return fl::nullopt;
394 T result;
395 size_t n = mValue->copy_to_output_iterator(fl::back_inserter(result));
fl::shared_ptr< json_value > mValue
Definition json.h:130
back_insert_iterator< Container > back_inserter(Container &c) FL_NOEXCEPT
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_NOEXCEPT, fl::fl::move(), mValue, fl::nullopt, and value().

+ Here is the call graph for this function: