boost::openmethod::virtual_ptr<SmartPtr, Registry>::virtual_ptr
Construct from nullptr
Synopsis
Declared in <boost/openmethod/core.hpp>
explicit
virtual_ptr(std::nullptr_t);
Description
Construct the object pointer using its default constructor. Set the v‐table pointer to nullptr.
Example
struct Dog {}; // polymorphism not required
BOOST_OPENMETHOD_CLASSES(Dog);
initialize();
virtual_ptr<std::shared_ptr<Dog>> p{nullptr};
BOOST_TEST(p.get() == nullptr);
BOOST_TEST(p.vptr() == nullptr);
Parameters
| Name | Description |
|---|---|
value |
A |
Created with MrDocs