bsl::weak_ptr::operator=

Assignment operators

Synopses

Declared in <bslstl_sharedptr.h>

Assign to this weak_ptr from the specified arguments.

weak_ptr&
operator=(weak_ptr const& rhs) noexcept;
» more...

Assign from a compatible shared or weak pointer rhs.

template<class COMPATIBLE_TYPE>
weak_ptr&
operator=(weak_ptr<COMPATIBLE_TYPE> const& rhs) noexcept
requires is_convertible<COMPATIBLE_TYPE *, ELEMENT_TYPE *>::value;
» more...

Assign to this weak_ptr from the specified arguments.

template<class COMPATIBLE_TYPE>
weak_ptr&
operator=(weak_ptr<COMPATIBLE_TYPE>&& rhs) noexcept
requires is_convertible<COMPATIBLE_TYPE *, ELEMENT_TYPE *>::value;
» more...

Assign to this weak_ptr from the specified arguments.

weak_ptr&
operator=(BloombergLP::bslmf::MovableRef<weak_ptr> rhs) noexcept;
» more...

Assign from a compatible shared pointer rhs.

template<class COMPATIBLE_TYPE>
weak_ptr&
operator=(shared_ptr<COMPATIBLE_TYPE> const& rhs) noexcept
requires is_convertible<COMPATIBLE_TYPE *, ELEMENT_TYPE *>::value;
» more...

Return Value

reference providing modifiable access to this weak pointer

Parameters

NameDescription
rhsright-hand side operand