boost::openmethod::virtual_ptr::virtual_ptr
Constructors
Synopses
Declared in <boost/openmethod/core.hpp>
Default constructor
virtual_ptr() = default;
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);
Construct from nullptr
explicit
virtual_ptr(std::nullptr_t);
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);
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);
Parameters
| Name | Description |
|---|---|
other |
A virtual_ptr to a type‐compatible object |
value |
A |
Created with MrDocs