folly::ReadMostlySharedPtr::operator=

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

Synopsis

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

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

Return Value

A reference to this shared pointer.

Template Parameters

NameDescription
T2The source pointee type, convertible to T.

Parameters

NameDescription
otherThe shared pointer to move from.