Assignment operators
Declared in <folly/concurrency/memory/ReadMostlySharedPtr.h>
Copy-assigns a weak reference to the same object.
ReadMostlyWeakPtr&
operator=(ReadMostlyWeakPtr const& other);
» more...
Copy-assigns from a weak pointer to a convertible type.
template<typename T2>
requires detail::ptr_convertible<T2, T>
ReadMostlyWeakPtr&
operator=(ReadMostlyWeakPtr<T2, RefCount> const& other);
» more...
Move-assigns from another weak pointer by swapping state.
ReadMostlyWeakPtr&
operator=(ReadMostlyWeakPtr&& other) noexcept;
» more...
Move-assigns from a weak pointer to a convertible type.
template<typename T2>
requires detail::ptr_convertible<T2, T>
ReadMostlyWeakPtr&
operator=(ReadMostlyWeakPtr<T2, RefCount>&& other) noexcept;
» more...
Assigns a weak reference from a main pointer of a convertible type.
template<typename T2>
requires detail::ptr_convertible<T2, T>
ReadMostlyWeakPtr&
operator=(ReadMostlyMainPtr<T2, RefCount> const& mainPtr);
» more...
Assigns a weak reference from a shared pointer of a convertible type.
template<typename T2>
requires detail::ptr_convertible<T2, T>
ReadMostlyWeakPtr&
operator=(ReadMostlySharedPtr<T2, RefCount> const& mainPtr);
» more...
A reference to this weak pointer.
| Name | Description |
|---|---|
| T2 | The source pointee type, convertible to T. |
| Name | Description |
|---|---|
| other | The weak pointer to copy. |
| mainPtr | The main pointer to reference. |