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