Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Chapter 8. Boost.Functional/Hash

Daniel James

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

目錄

簡介
指南
為定制數據類型擴展 boost::hash
結合散列值
可移植性
使擴展無效
變化日誌
參考
Header <boost/functional/hash.hpp>
鏈接
感謝

boost::hash 是由 Draft Technical Report on C++ Library Extensions (TR1) 規範的散列函數對象的一個實例。它是 Boost.UnorderedBoost.Intrusive 的無序關聯式容器,Boost.MultiIndex 的散列索引,以及 Boost.Bimapunordered_set_of 的缺省散列函數。

因為它遵循 TR1,它將可以和以下類型一起工作:

  • integers
  • floats
  • pointers
  • strings

它也實現了 Peter Dimov 在 Library Extension Technical Report Issues List(第 63 頁)中的 issue 6.18 提議的擴展,這就提供了對以下各項的支持:

  • arrays
  • std::pair
  • 標準容器。
  • 為定制類型擴展 boost::hash

Last revised: November 02, 2008 at 13:06:19 GMT


PrevUpHomeNext