boost::openmethod::policies::fast_perfect_hash::fn::hash

Hash a type id

Synopsis

[[__always_inline__]]
static
std::size_t
hash(type_id type);

Description

Hash a type id.

If Registry contains the runtime_checks policy, checks that the type id is valid, i.e. if it was present in the set passed to initialize. Its absence indicates that a class involved in a method definition, method overrider, or method call was not registered. In this case, signal a missing_class using the registry's error_handler if present; then calls abort.

Return Value

The hash value

Parameters

Name Description

type

The type_id to hash

Created with MrDocs