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

◆ FASTLED_SMART_PTR_CONSTRUCTOR

#define FASTLED_SMART_PTR_CONSTRUCTOR ( type,
constructor )
Value:
template <> class PtrTraits<type> { \
public: \
template <typename... Args> static shared_ptr<type> New(Args... args) { \
fl::shared_ptr<type> ptr = constructor(args...); \
return ptr; \
} \
};
corkscrew_args args
Definition old.h:150

Definition at line 45 of file ptr.h.

45#define FASTLED_SMART_PTR_CONSTRUCTOR(type, constructor) \
46 template <> class PtrTraits<type> { \
47 public: \
48 template <typename... Args> static shared_ptr<type> New(Args... args) { \
49 fl::shared_ptr<type> ptr = constructor(args...); \
50 return ptr; \
51 } \
52 };