boost::openmethod::policies::VptrFn::vptr

Return a reference to the v‐table pointer for a type.

Synopsis

Declared in <boost/openmethod/preamble.hpp>

static
vptr_type const&
vptr(type_id type);

Description

Return a reference to the v‐table pointer that initialize associated to type.

This function is optional. Implement it if the registry is to be used with virtual parameters whose virtual_traits supply a type_id themselves, instead of an object ‐ see VirtualTraits::vptr. Both vptr_vector and vptr_map provide it, and implement dynamic_vptr in terms of it.

Return Value

A reference to the v‐table pointer for type.

Parameters

Name

Description

type

A type_id.

Created with MrDocs