folly::ReadMostlySharedPtr::operator=

Assignment operators

Synopses

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...

Return Value

A reference to this shared pointer.

Template Parameters

NameDescription
T2The source pointee type, convertible to T.

Parameters

NameDescription
otherThe shared pointer to copy.