...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::hash — An STL compliant hash function object.
template<typename T> struct hash : public std::unary_function<T, std::size_t> { std::size_t operator()(T const&) const; };
std::size_t operator()(T const& val) const;
Returns:
hash_value(val)
hash_value
is unqualified, so that custom overloads can be
found via argument dependent lookup.
hash_value(T)
throws.
Copyright © 2005 Daniel James |