boost::openmethod::virtual_ptr<SmartPtr, Registry>
Wide pointer combining a smart pointer to an object and a pointer to its v‐table
Synopsis
Declared in <boost/openmethod/core.hpp>
template<
class SmartPtr,
class Registry>
requires IsSmartPtr<SmartPtr, Registry>
class virtual_ptr<SmartPtr, Registry>;
Description
This specialization of virtual_ptr uses a smart pointer to track the object, instead of a plain pointer.
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Get a pointer to the object |
|
Get a pointer to the object |
|
Get a reference to the object |
|
Get a smart pointer to the object |
|
Cast to another |
|
Get the v‐table pointer |
Static Member Functions
Name |
Description |
Construct a |
Template Parameters
| Name | Description |
|---|---|
SmartPtr |
A smart pointer type |
Registry |
The registry in which the underlying class is registered |
Created with MrDocs