boost::openmethod::default_registry :: Boost.OpenMethod

# boost::openmethod::default_registry

Default registry.

## Synopsis

Declared in `<boost/openmethod/default_registry.hpp>`

    struct default_registry
        : registry<policies::std_rtti, policies::vptr_vector, policies::fast_perfect_hash, policies::default_error_handler, policies::stderr_output>

## Description

`default_registry` is a predefined `registry`, and the default value of BOOST_OPENMETHOD_DEFAULT_REGISTRY. It contains the following policies:

- `policies::std_rtti`: Use standard RTTI.

- `policies::fast_perfect_hash`: Use a fast perfect hash function to map type ids to indices.

- `policies::vptr_vector`: Store v‐table pointers in a `std::vector`.

- `policies::default_error_handler`: Write short diagnostic messages.

- `policies::stderr_output`: Write messages to `stderr`.

If BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS is defined, `default_registry` also includes the `runtime_checks` policy.

| Use `BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS` with caution, as inconsistent use of the macro can cause ODR violations. If defined, it must be in all the translation units in the program that use `default_registry`, including those pulled from libraries.

## Base Classes

Name | Description
--- | ---
`registry<policies::std_rtti, policies::vptr_vector, policies::fast_perfect_hash, policies::default_error_handler, policies::stderr_output>` | Methods, classes and policies.

Created with MrDocs