Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template hash

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

Synopsis

// In header: <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