template <class R> SF_INLINE const Ptr<C>& operator =(const Ptr<R> & src); SF_INLINE const Ptr<C>& operator =(const Ptr<C> & src); SF_INLINE const Ptr<C>& operator =(C * psrc); SF_INLINE const Ptr<C>& operator =(C & src); SF_INLINE Ptr<C>& operator =(Pickable<C> src); template <class R> SF_INLINE Ptr<C>& operator =(Pickable<R> src);
= assigns this smart pointer to a reference-counted object. Any object this Ptr is already assigned to will be released. If the new object is a reference, its refcount will not be incremented, otherwise its refcount will be incremented.
Parameters |
Description |
const Ptr<R> & src |
A reference to a source object to be assigned. This object's refcount will not be incremented. |
C * psrc |
A pointer to a source object to be assigned. This object's refcount will be incremented. |
A Ptr<C> reference to the current ref count ptr.