boost::openmethod::policies::type_hash

Policy for hashing type ids.

Synopsis

Declared in <boost/openmethod/preamble.hpp>

struct type_hash;

Requirements

Classes implementing this policy must:

  • derive from type_hash.

  • provide a fn<Registry> metafunction that conforms to the TypeHashFn blueprint.

Type Aliases

Name

category

Derived Classes

Name

Description

fast_perfect_hash

Hash type ids using a fast, perfect hash function.

minimal_cover_hash

Map type ids to indexes by extracting a minimal cover of their bits.

minimal_perfect_hash

Map type ids to a dense index with a minimal perfect hash.

two_level_hash

Map type ids to an index with two multiply‐shifts.

See Also