boost::openmethod::policies::RttiFn::type_index

Returns a key that identifies a class across modules.

Synopsis

Declared in <boost/openmethod/preamble.hpp>

static
auto
type_index(type_id type);

Description

The key must compare equal for all the type ids of one class ‐ one per module, typically ‐ and differ for two different classes, including two classes with the same name in different translation units, such as classes defined in anonymous namespaces. It must support ==, < and std::hash.

Return Value

A key that identifies the class of type.

Parameters

Name

Description

type

A type_id.

Created with MrDocs