boost::openmethod::virtual_ptr::operator=
Assignment operators
Synopses
Declared in <boost/openmethod/core.hpp>
Assign a virtual_ptr from another virtual_ptr
template<class Other>
requires std::is_assignable_v<
Class*&, typename virtual_ptr<Other, Registry>::element_type*>
virtual_ptr&
operator=(virtual_ptr<Other, Registry> const& other);
Set a virtual_ptr to nullptr
virtual_ptr&
operator=(std::nullptr_t);
Assign a virtual_ptr from a reference to an object
template<class Other>
requires IsPolymorphic<Class, Registry> &&
std::is_assignable_v<Class*&, Other*>
virtual_ptr&
operator=(Other& other);
Assign a virtual_ptr from a pointer to an object
template<class Other>
requires IsPolymorphic<Class, Registry> &&
std::is_assignable_v<Class*&, Other*>
virtual_ptr&
operator=(Other* other);
Parameters
| Name | Description |
|---|---|
other |
A virtual_ptr to a type‐compatible object |
Created with MrDocs