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 template hash

boost::pfr::hash — std::hash like functor that returns boost::pfr::hash_value (x)

Synopsis

// In header: <boost/pfr/functors.hpp>

template<typename T> 
struct hash {

  // public member functions
  std::size_t operator()(const T &) const;
};

Description

hash public member functions

  1. std::size_t operator()(const T & x) const;

    Returns:

    hash value of x.


PrevUpHomeNext