boost::openmethod::virtual_traits<virtual_ptr<Class, Registry>, Registry>::cast
Cast to another type.
Synopses
Declared in <boost/openmethod/core.hpp>
Cast to another type.
template<typename Derived>
static
decltype(auto)
cast(virtual_ptr<Class, Registry> const& ptr);
Cast to another type.
template<typename Derived>
static
decltype(auto)
cast(virtual_ptr<Class, Registry>&& ptr);
Return Value
-
A lvalue reference to a
virtual_ptrto the same object, cast toDerived::element_type. -
A xvalue reference to a
virtual_ptrto the same object, cast toDerived::element_type.
Parameters
| Name | Description |
|---|---|
obj |
A lvalue reference to a |
Created with MrDocs