Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct hash<std::type_index>

boost::hash<std::type_index>

Synopsis

// In header: <boost/functional/hash.hpp>


struct hash<std::type_index> {
  std::size_t operator()(std::type_index) const;
};

Description

std::size_t operator()(std::type_index val) const;

Returns:

val.hash_code()

Throws:

Doesn't throw


PrevUpHomeNext