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

◆ operator=() [1/3]

template<typename T>
Ptr & fl::Ptr< T >::operator= ( const Ptr< T > & other)
inline

Definition at line 152 of file ptr.h.

152 {
153 if (this != &other) {
154 if (referent_ && isOwned()) {
155 referent_->unref();
156 }
158 if (referent_ && isOwned()) {
159 referent_->ref();
160 }
161 }
162 return *this;
163 }
T * referent_
Definition ptr.h:243
bool isOwned() const
Definition ptr.h:235
Definition ptr.h:102

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

+ Here is the call graph for this function: