intro.qbk 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [/ Copyright 2005-2008 Daniel James.
  2. / Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ]
  4. [section:intro Introduction]
  5. [def __tr1-full__
  6. [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf
  7. Draft Technical Report on C++ Library Extensions]]
  8. [def __tr1__
  9. [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf
  10. TR1]]
  11. [def __unordered__ [link unordered Boost.Unordered]]
  12. [def __intrusive__ [link intrusive.unordered_set_unordered_multiset Boost.Intrusive]]
  13. [def __multi-index__ [@boost:/libs/multi_index/doc/index.html
  14. Boost Multi-Index Containers Library]]
  15. [def __multi-index-short__ [@boost:/libs/multi_index/doc/index.html
  16. Boost.MultiIndex]]
  17. [def __bimap__ [@boost:/libs/bimap/index.html Boost.Bimap]]
  18. [def __hash-function__ [@http://en.wikipedia.org/wiki/Hash_function hash function]]
  19. [def __hash-table__ [@http://en.wikipedia.org/wiki/Hash_table hash table]]
  20. [classref boost::hash] is an implementation of the __hash-function__ object
  21. specified by the __tr1-full__ (TR1). It is the default hash function for
  22. __unordered__, __intrusive__'s unordered associative containers, and
  23. __multi-index-short__'s hash indicies and __bimap__'s `unordered_set_of`.
  24. As it is compliant with __tr1__, it will work with:
  25. * integers
  26. * floats
  27. * pointers
  28. * strings
  29. It also implements the extension proposed by Peter Dimov in issue 6.18 of the
  30. __issues__ (page 63), this adds support for:
  31. * arrays
  32. * `std::pair`
  33. * the standard containers.
  34. * extending [classref boost::hash] for custom types.
  35. [note
  36. This hash function is designed to be used in containers based on
  37. the STL and is not suitable as a general purpose hash function.
  38. For more details see the [link hash.rationale rationale].
  39. ]
  40. [endsect]