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; \
} \
};
Definition ptr.h:102

Definition at line 25 of file ptr.h.

25#define FASTLED_SMART_PTR_CONSTRUCTOR(type, constructor) \
26 template <> class PtrTraits<type> { \
27 public: \
28 template <typename... Args> static Ptr<type> New(Args... args) { \
29 fl::Ptr<type> ptr = constructor(args...); \
30 return ptr; \
31 } \
32 };