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 Ptr<type> New(Args... args) { \
fl::Ptr<type> ptr = constructor(args...); \
return ptr; \
} \
};
corkscrew_args args
Definition ptr.h:118

Definition at line 43 of file ptr.h.

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