Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template hash_value

boost::hash_value — Calculate hash value for an array.

Synopsis

// In header: <boost/array.hpp>


template<typename T, std::size_t N> 
  std::size_t hash_value(const array< T, N > & arr);

Description

This function calculates the hash value for an array

Complexity. 

Linear

[Note] Note

This function is used to calculate the hash for an array, which allows it to be inserted in unordered containers.

See Also:

hash_range

Parameters:

arr

Array for which we calculate the hash

Returns:

hash value for an array


PrevUpHomeNext