boost::openmethod::policies::vptr_vector::fn :: Boost.OpenMethod

# boost::openmethod::policies::vptr_vector::fn

A VptrFn metafunction.

## Synopsis

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

    template<class Registry>
    struct fn;

## Description

Keeps track of v‐table pointers using a `std::vector`.

If `Registry` contains a `type_hash` policy, it is used to convert `type_id`s to indices; otherwise, `type_id`s are used as indices.

If `Registry` contains the `indirect_vptr` policy, stores pointers to pointers to v‐tables in the map.

## Types

Name
`type_hash`

## Static Member Functions

Name | Description
`initialize` | Stores the v‐table pointers.
`dynamic_vptr` | Returns a reference to a v‐table pointer for an object.
`finalize` | Releases the memory allocated by `initialize`.

## Static Data Members

Name
`has_type_hash`

## Template Parameters

Name | Description
--- | ---
Registry | The registry containing this policy.

Created with MrDocs