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

◆ make_shared()

template<typename T, typename... Args>
shared_ptr< T > fl::make_shared ( Args &&... args)
Examples
FxDemoReel100.ino, FxFire2012.ino, and FxGfx2Video.ino.

Definition at line 348 of file shared_ptr.h.

348 {
349 T* obj = new T(fl::forward<Args>(args)...);
350 auto* control = new detail::ControlBlock<T>(obj);
351 //FASTLED_WARN("make_shared created object at " << obj
352 // << " with control block at " << control);
353 //new(control->get_object()) T(fl::forward<Args>(args)...);
354 //control->object_constructed = true;
355 return shared_ptr<T>(obj, control, detail::make_shared_tag{});
356}
constexpr T && forward(typename remove_reference< T >::type &t) noexcept
corkscrew_args args
Definition old.h:150

Referenced by fl::Blend2d::Blend2d(), fl::DigitalPin::DigitalPin(), fl::FxCompositor::FxCompositor(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::LinePath::LinePath(), fl::RosePath::RosePath(), fl::ScreenMap::ScreenMap(), fl::ScreenMap::ScreenMap(), fl::StrN< SIZE >::StrN(), fl::Video::Video(), fl::XYPath::XYPath(), fl::FxEngine::addFx(), fl::UIDropdown::addNextButton(), fl::shared_ptr< T >::allocate_shared, fl::StrN< SIZE >::assign(), fl::XYMap::constructWithLookUpTable(), fl::XMap::convertToLookUpTable(), fl::XYMap::convertToLookUpTable(), fl::StrN< SIZE >::copy(), fl::StrN< SIZE >::copy(), fl::StrN< SIZE >::copy(), fl::promise< T >::create(), fl::TaskImpl::create_after_frame(), fl::TaskImpl::create_after_frame(), fl::TaskImpl::create_at_framerate(), fl::TaskImpl::create_at_framerate(), fl::TaskImpl::create_before_frame(), fl::TaskImpl::create_before_frame(), fl::TaskImpl::create_every_ms(), fl::TaskImpl::create_every_ms(), CreateArgsLower(), CreateArgsUpper(), fl::FxLayer::draw(), FL_DISABLE_WARNING(), fl::Json::from_char(), fl::JsonValue::from_char(), fl::Json::from_value(), fl::FFT::get_or_create(), fl::Corkscrew::getOrCreateInputSurface(), fl::TransformFloatImpl::Identity(), anonymous_namespace{xypaths.cpp}::make_path(), make_sdcard_filesystem(), make_shared_ptr(), fl::XYPath::NewArchimedeanSpiralPath(), fl::XYPath::NewArchimedeanSpiralPath(), fl::XYPath::NewCatmullRomPath(), fl::XYPath::NewCirclePath(), fl::XYPath::NewCirclePath(), fl::XYPath::NewCustomPath(), fl::XYPath::NewGielisCurvePath(), fl::XYPath::NewHeartPath(), fl::XYPath::NewHeartPath(), fl::XYPath::NewLinePath(), fl::XYPath::NewLinePath(), fl::XYPath::NewPhyllotaxisPath(), fl::XYPath::NewPointPath(), fl::XYPath::NewRosePath(), NewWaveSimulation2D(), fl::NullFileSystem::openRead(), fl::Json::operator=(), fl::Json::operator=(), fl::Json::operator[](), fl::JsonValue::operator[](), fl::JsonValue::parse(), fl::Json::push_back(), fl::StrN< SIZE >::reserve(), fl::Json::set(), setup(), fl::JsonValue::to_string(), and fl::StrN< SIZE >::write().