...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 — A TR1 compliant hash function object.
// In header: <boost/functional/hash.hpp> 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)
|
Notes: |
The call to
This is not defined when the macro
Forward declared in
|
Throws: |
Only throws if
|