Home | Libraries | People | FAQ | More |
boost::hash — A TR1 compliant hash function object.
// In header: <boost/container_hash/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
This hash function is not intended for general use, and isn't guaranteed to be equal during separate runs of a program - so please don't use it for any persistent storage or communication. |
Throws: |
Only throws if
|