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;
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;
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;
Assign to this weak_ptr from the specified arguments.
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;
Return Value
reference providing modifiable access to this weak pointer
Parameters
Name |
Description |
rhs |
right‐hand side operand |
Created with MrDocs