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 old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function hash_value

boost::hash_value —

Synopsis

template<typename K, typename T, typename C, typename A> 
std::size_t hash_value(std::map<K, T, C, A> const & val);
template<typename K, typename T, typename C, typename A> 
std::size_t hash_value(std::multimap<K, T, C, A> const & val);

Description

Returns: hash_range(val.begin(), val.end());
Throws: Only throws if hash_value(std::pair<K const, T>) throws.
Notes: This is an extension to TR1

Copyright 2005 Daniel James

PrevUpHomeNext