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

◆ operator=() [1/3]

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

Definition at line 58 of file ptr_impl.h.

58 {
59 if (this != &other) {
60 if (referent_ && isOwned()) {
61 referent_->unref();
62 }
64 if (referent_ && isOwned()) {
65 referent_->ref();
66 }
67 }
68 return *this;
69}
T * referent_
Definition ptr.h:184
bool isOwned() const
Definition ptr.h:180
Definition ptr.h:114

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

+ Here is the call graph for this function: