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 138 of file ptr.h.

138 : referent_(refptr.get()) {
139 if (referent_ && isOwned()) {
140 referent_->ref();
141 }
142 }
T * referent_
Definition ptr.h:258
T * get() const
Definition ptr.h:210
bool isOwned() const
Definition ptr.h:250
Definition ptr.h:118

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: