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

◆ Ptr() [1/6]

template<typename T>
template<typename U, typename = fl::is_derived<T, U>>
fl::Ptr< T >::Ptr ( const Ptr< U > & refptr)
inline

Definition at line 121 of file ptr.h.

121 : referent_(refptr.get()) {
122 if (referent_ && isOwned()) {
123 referent_->ref();
124 }
125 }
T * referent_
Definition ptr.h:243
T * get() const
Definition ptr.h:195
bool isOwned() const
Definition ptr.h:235
Definition ptr.h:102

References Ptr(), get(), isOwned(), and referent_.

Referenced by Ptr(), Ptr(), Ptr(), New(), NoTracking(), Null(), operator!=(), operator<(), operator=(), operator=(), operator=(), operator==(), reset(), swap(), and TakeOwnership().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: