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 an older version of Boost and was released in 2013. The current version is 1.91.0.
boost::hash_value —
Implementation of a hash function for std::basic_string.
template<typename Ch, typename A> Â Â std::size_t hash_value(std::basic_string<Ch, std::char_traits<Ch>, A> const& val);
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
hash_range(val.begin(), val.end())
| Copyright © 2005 Daniel James |