boost::openmethod::weak_virtual_ptr::weak_virtual_ptr

Constructors

Synopses

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

Default constructor

weak_virtual_ptr(weak_virtual_ptr const& other) = default;

Construct from a weak_virtual_ptr to a derived class

template<class Other>
requires std::is_constructible_v<
            std::weak_ptr<Class>, const std::weak_ptr<Other>&>
weak_virtual_ptr(weak_virtual_ptr<Other, Registry> const& other);
weak_virtual_ptr(weak_virtual_ptr&& other) noexcept;

Move‐construct from a weak_virtual_ptr to a derived class

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

Construct from nullptr

explicit
weak_virtual_ptr(std::nullptr_t);

Construct from a std::shared_ptr to a derived class

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

Construct from a shared_virtual_ptr to a derived class

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

Construct from a std::weak_ptr to a derived class

template<class Other>
requires IsPolymorphic<Other, Registry> && std::is_constructible_v<
            std::weak_ptr<Class>, const std::weak_ptr<Other>&>
weak_virtual_ptr(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