boost::openmethod::policies::vptr_map::fn::dynamic_vptr :: Boost.OpenMethod

# boost::openmethod::policies::vptr_map::fn::dynamic_vptr

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

## Synopsis

Declared in `<boost/openmethod/policies/vptr_map.hpp>`

    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 contains the `runtime_checks` policy, checks that the map contains the type id. 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