boost::openmethod::virtual_traits<virtual_ptr<Class, Registry> const&, Registry>::cast

Cast to another type.

Synopsis

template<typename Derived>
static
decltype(auto)
cast(virtual_ptr<Class, Registry> const& ptr);

Description

Cast a virtual_ptr to another type, using its cast member function.

Return Value

A lvalue reference to a virtual_ptr to the same object, cast to Derived::element_type.

Parameters

Name Description

obj

A lvalue reference to a virtual_ptr.

Created with MrDocs