boost::openmethod::virtual_ptr::virtual_ptr :: Boost.OpenMethod

# boost::openmethod::virtual_ptr::virtual_ptr

Constructors

## Synopses

Declared in `<boost/openmethod/core.hpp>`

Default constructor

    virtual_ptr() = default;

» more...

Construct a `virtual_ptr` from another `virtual_ptr`

    template<class Other>
    requires std::is_constructible_v<
                Class*, typename virtual_ptr<Other, Registry>::element_type*>
    virtual_ptr(virtual_ptr<Other, Registry> const& other);

» more...

Construct from `nullptr`

    explicit
    virtual_ptr(std::nullptr_t);

» more...

Construct a `virtual_ptr` from a reference to an object

    template<class Other>
    requires IsPolymorphic<Other, Registry> &&
                std::is_constructible_v<Class*, Other*>
    virtual_ptr(Other& other);

» more...

Construct a `virtual_ptr` from a pointer to an object

    template<class Other>
    requires IsPolymorphic<Class, Registry> &&
                std::is_constructible_v<Class*, Other*>
    virtual_ptr(Other* other);

» more...

## Parameters

Name | Description
--- | ---
other | A virtual_ptr to a type‐compatible object
value | A `nullptr`.

Created with MrDocs