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

# boost::openmethod::virtual_ptr::virtual_ptr

Construct from `nullptr`

## Synopsis

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

    explicit
    virtual_ptr(std::nullptr_t);

## Description

Set both object and v‐table pointers to `nullptr`.

## Example

    struct Animal { virtual ~Animal() { } }; // polymorphic
    struct Dog : Animal {}; // polymorphic
    BOOST_OPENMETHOD_CLASSES(Animal, Dog);
    initialize();

    virtual_ptr<Dog> p{nullptr};
    BOOST_TEST(p.get() == nullptr);
    BOOST_TEST(p.vptr() == nullptr);

## Parameters

Name | Description
--- | ---
value | A `nullptr`.
value | A `nullptr`.

Created with MrDocs