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

Function hash_value

boost::hash_value — Implementation of a hash function for pointers.

Synopsis

template<typename T> std::size_t hash_value(T* const& val);

Description

Generally shouldn't be called directly by users, instead they should use boost::hash, boost::hash_range or boost::hash_combine which call hash_value without namespace qualification so that overloads for custom types are found via ADL.

Notes: Overloads for other types supplied in other headers.

This is an extension to TR1


Returns: An unspecified value, except that equal arguments shall yield the same result

Copyright © 2005 Daniel James

PrevUpHomeNext