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

◆ operator=() [6/10]

json & fl::json::operator= ( fl::vector< float > vec)
inline

Definition at line 368 of file json.h.

370 {
372 if (!mValue) { return *this; } // FastLED#3588: OOM-degraded empty
373 auto ptr = mValue->data.ptr<json_array>();
374 if (ptr) {
375 for (const auto& item : vec) {
376 ptr->push_back(fl::make_shared<json_value>(item)); // Use float directly
377 }
378 }
fl::shared_ptr< json_value > mValue
Definition json.h:263
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
fl::vector< fl::shared_ptr< json_value > > json_array
Definition types.h:54

References json(), fl::FL_NO_EXCEPT, fl::adl_barrier::make_shared(), and mValue.

+ Here is the call graph for this function: