boost::openmethod::weak_virtual_ptr::operator=

Assignment operators

Synopses

Declared in <boost/openmethod/interop/std_weak_ptr.hpp>

weak_virtual_ptr&
operator=(weak_virtual_ptr const& other) = default;

Assign from a weak_virtual_ptr to a derived class

template<class Other>
requires std::is_assignable_v<
            std::weak_ptr<Class>&, const std::weak_ptr<Other>&>
weak_virtual_ptr&
operator=(weak_virtual_ptr<Other, Registry> const& other);

Move‐assign from a weak_virtual_ptr to a derived class

template<class Other>
requires std::is_assignable_v<
            std::weak_ptr<Class>&, std::weak_ptr<Other>&&>
weak_virtual_ptr&
operator=(weak_virtual_ptr<Other, Registry>&& other) noexcept;

Assign from nullptr

weak_virtual_ptr&
operator=(std::nullptr_t) noexcept;

Assign from a std::shared_ptr to a derived class

template<class Other>
requires IsPolymorphic<Other, Registry> && std::is_assignable_v<
            std::weak_ptr<Class>&, const std::shared_ptr<Other>&>
weak_virtual_ptr&
operator=(std::shared_ptr<Other> const& other);

Assign from a shared_virtual_ptr to a derived class

template<class Other>
requires std::is_assignable_v<
            std::weak_ptr<Class>&, const std::shared_ptr<Other>&>
weak_virtual_ptr&
operator=(virtual_ptr<std::shared_ptr<Other>, Registry> const& other);

Assign from a std::weak_ptr to a derived class

template<class Other>
requires IsPolymorphic<Other, Registry> && std::is_assignable_v<
            std::weak_ptr<Class>&, const std::weak_ptr<Other>&>
weak_virtual_ptr&
operator=(std::weak_ptr<Other> const& other);

Parameters

Name

Description

other

A weak_virtual_ptr to an object of a class derived from Class.

value

A nullptr.

Created with MrDocs