boost::openmethod::policies::vptr_vector::fn::dynamic_vptr

Returns a reference to a v‐table pointer for an object.

Synopsis

template<class Class>
static
vptr_type const&
dynamic_vptr(Class const& arg);

Description

Acquires the dynamic type_id of arg, using the registry's rtti policy.

If the registry has a type_hash policy, uses it to convert the type id to an index; otherwise, uses the type_id as the index.

If the registry contains the runtime_checks policy, verifies that the index falls within the limits of the vector. If it does not, and if the registry contains a error_handler policy, calls its error function with a missing_class value, then terminates the program with abort.

Return Value

A reference to a the v‐table pointer for Class.

Template Parameters

Name Description

Class

A registered class.

Parameters

Name Description

arg

A reference to a const object of type Class.

Created with MrDocs