folly::ReadMostlyWeakPtr::operator=

Move-assigns from a weak pointer to a convertible type.

Synopsis

Declared in <folly/concurrency/memory/ReadMostlySharedPtr.h>

template<typename T2>
requires detail::ptr_convertible<T2, T>
ReadMostlyWeakPtr&
operator=(ReadMostlyWeakPtr<T2, RefCount>&& other) noexcept;

Return Value

A reference to this weak pointer.

Template Parameters

NameDescription
T2The source pointee type, convertible to T.

Parameters

NameDescription
otherThe weak pointer to move from.