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

◆ as_impl() [9/9]

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

Definition at line 408 of file json.h.

410 {
411 if (!mValue->is_array()) return fl::nullopt;
412 T result;
413 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: