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

167 {
168 if (this != &other) {
169 if (referent_ && isOwned()) {
170 referent_->unref();
171 }
173 if (referent_ && isOwned()) {
174 referent_->ref();
175 }
176 }
177 return *this;
178 }
T * referent_
Definition ptr.h:258
bool isOwned() const
Definition ptr.h:250
Definition ptr.h:118

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

+ Here is the call graph for this function: