std::shared_ptr::operator=

From Cppreference

Jump to: navigation, search
shared_ptr& operator=( const shared_ptr& r );
(1)
template< class T >
shared_ptr& operator=(const shared_ptr<T>& r);
(1)
shared_ptr& operator=( shared_ptr&& r );
(2)
template< class T >
shared_ptr& operator=( shared_ptr<T>&& r);
(2)
template< class T >
shared_ptr& operator=( std::auto_ptr<T>&& r );
(3)
template< class T, class Deleter >
shared_ptr& operator=( std::unique_ptr<T,Deleter>&& r );
(4)

Contents

[edit] Parameters

[edit] Return value

*this

[edit] Example

[edit] See also