boost::openmethod::virtual_traits<boost::type_erasure::any<C, T const&>, Registry>::vptr

Returns a reference to a v‐table pointer for the bound value.

Synopsis

Declared in <boost/openmethod/interop/boost_type_erasure.hpp>

static
vptr_type const&
vptr(boost::type_erasure::any<C, T const&> const& arg);

Description

Looks up the type_id returned by boost::type_erasure::typeid_of in the registry's vptr policy.

This requires the registry's rtti policy to be std_rtti; the requirement is enforced with a static_assert. Registers the owning any ‐ the root class of the bound types ‐ in Registry.

Return Value

A reference to the v‐table pointer for the bound value.

Parameters

Name

Description

arg

A reference to a const any.

Created with MrDocs