changes.qbk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. [/ Copyright 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. [template ticket[number]'''<ulink
  5. url="https://svn.boost.org/trac/boost/ticket/'''[number]'''">'''#[number]'''</ulink>''']
  6. [template pull_request[number][@https://github.com/boostorg/unordered/pull/[number] GitHub #[number]]]
  7. [section:changes Change Log]
  8. [h2 Review Version]
  9. Initial review version, for the review conducted from 7th December 2007 to
  10. 16th December 2007.
  11. [h2 1.35.0 Add-on - 31st March 2008]
  12. Unofficial release uploaded to vault, to be used with Boost 1.35.0. Incorporated
  13. many of the suggestions from the review.
  14. * Improved portability thanks to Boost regression testing.
  15. * Fix lots of typos, and clearer text in the documentation.
  16. * Fix floating point to `std::size_t` conversion when calculating sizes from
  17. the max load factor, and use `double` in the calculation for greater accuracy.
  18. * Fix some errors in the examples.
  19. [h2 Boost 1.36.0]
  20. First official release.
  21. * Rearrange the internals.
  22. * Move semantics - full support when rvalue references are available, emulated
  23. using a cut down version of the Adobe move library when they are not.
  24. * Emplace support when rvalue references and variadic template are available.
  25. * More efficient node allocation when rvalue references and variadic template
  26. are available.
  27. * Added equality operators.
  28. [h2 Boost 1.37.0]
  29. * Rename overload of `emplace` with hint, to `emplace_hint` as specified in
  30. [@http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2691.pdf n2691].
  31. * Provide forwarding headers at `<boost/unordered/unordered_map_fwd.hpp>` and
  32. `<boost/unordered/unordered_set_fwd.hpp>`.
  33. * Move all the implementation inside `boost/unordered`, to assist
  34. modularization and hopefully make it easier to track changes in subversion.
  35. [h2 Boost 1.38.0]
  36. * Use [@boost:/libs/core/swap.html `boost::swap`].
  37. * [@https://svn.boost.org/trac/boost/ticket/2237 Ticket 2237]:
  38. Document that the equality and inequality operators are undefined for two
  39. objects if their equality predicates aren't equivalent. Thanks to Daniel
  40. Krügler.
  41. * [@https://svn.boost.org/trac/boost/ticket/1710 Ticket 1710]:
  42. Use a larger prime number list. Thanks to Thorsten Ottosen and Hervé
  43. Brönnimann.
  44. * Use
  45. [@boost:/libs/type_traits/doc/html/boost_typetraits/category/alignment.html
  46. aligned storage] to store the types. This changes the way the allocator is
  47. used to construct nodes. It used to construct the node with two calls to
  48. the allocator's `construct` method - once for the pointers and once for the
  49. value. It now constructs the node with a single call to construct and
  50. then constructs the value using in place construction.
  51. * Add support for C++0x initializer lists where they're available (currently
  52. only g++ 4.4 in C++0x mode).
  53. [h2 Boost 1.39.0]
  54. * [@https://svn.boost.org/trac/boost/ticket/2756 Ticket 2756]: Avoid a warning
  55. on Visual C++ 2009.
  56. * Some other minor internal changes to the implementation, tests and
  57. documentation.
  58. * Avoid an unnecessary copy in `operator[]`.
  59. * [@https://svn.boost.org/trac/boost/ticket/2975 Ticket 2975]: Fix length of
  60. prime number list.
  61. [h2 Boost 1.40.0]
  62. * [@https://svn.boost.org/trac/boost/ticket/2975 Ticket 2975]:
  63. Store the prime list as a preprocessor sequence - so that it will always get
  64. the length right if it changes again in the future.
  65. * [@https://svn.boost.org/trac/boost/ticket/1978 Ticket 1978]:
  66. Implement `emplace` for all compilers.
  67. * [@https://svn.boost.org/trac/boost/ticket/2908 Ticket 2908],
  68. [@https://svn.boost.org/trac/boost/ticket/3096 Ticket 3096]:
  69. Some workarounds for old versions of borland, including adding explicit
  70. destructors to all containers.
  71. * [@https://svn.boost.org/trac/boost/ticket/3082 Ticket 3082]:
  72. Disable incorrect Visual C++ warnings.
  73. * Better configuration for C++0x features when the headers aren't available.
  74. * Create less buckets by default.
  75. [h2 Boost 1.41.0 - Major update]
  76. * The original version made heavy use of macros to sidestep some of the older
  77. compilers' poor template support. But since I no longer support those
  78. compilers and the macro use was starting to become a maintenance burden it
  79. has been rewritten to use templates instead of macros for the implementation
  80. classes.
  81. * The container object is now smaller thanks to using `boost::compressed_pair`
  82. for EBO and a slightly different function buffer - now using a bool instead
  83. of a member pointer.
  84. * Buckets are allocated lazily which means that constructing an empty container
  85. will not allocate any memory.
  86. [h2 Boost 1.42.0]
  87. * Support instantiating the containers with incomplete value types.
  88. * Reduced the number of warnings (mostly in tests).
  89. * Improved codegear compatibility.
  90. * [@http://svn.boost.org/trac/boost/ticket/3693 Ticket 3693]:
  91. Add `erase_return_void` as a temporary workaround for the current
  92. `erase` which can be inefficient because it has to find the next
  93. element to return an iterator.
  94. * Add templated find overload for compatible keys.
  95. * [@http://svn.boost.org/trac/boost/ticket/3773 Ticket 3773]:
  96. Add missing `std` qualifier to `ptrdiff_t`.
  97. * Some code formatting changes to fit almost all lines into 80 characters.
  98. [h2 Boost 1.43.0]
  99. * [@http://svn.boost.org/trac/boost/ticket/3966 Ticket 3966]:
  100. `erase_return_void` is now `quick_erase`, which is the
  101. [@http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#579
  102. current forerunner for resolving the slow erase by iterator], although
  103. there's a strong possibility that this may change in the future. The old
  104. method name remains for backwards compatibility but is considered deprecated
  105. and will be removed in a future release.
  106. * Use Boost.Exception.
  107. * Stop using deprecated `BOOST_HAS_*` macros.
  108. [h2 Boost 1.45.0]
  109. * Fix a bug when inserting into an `unordered_map` or `unordered_set` using
  110. iterators which returns `value_type` by copy.
  111. [h2 Boost 1.48.0 - Major update]
  112. This is major change which has been converted to use Boost.Move's move
  113. emulation, and be more compliant with the C++11 standard. See the
  114. [link unordered.compliance compliance section] for details.
  115. The container now meets C++11's complexity requirements, but to do so
  116. uses a little more memory. This means that `quick_erase` and
  117. `erase_return_void` are no longer required, they'll be removed in a
  118. future version.
  119. C++11 support has resulted in some breaking changes:
  120. * Equality comparison has been changed to the C++11 specification.
  121. In a container with equivalent keys, elements in a group with equal
  122. keys used to have to be in the same order to be considered equal,
  123. now they can be a permutation of each other. To use the old
  124. behavior define the macro `BOOST_UNORDERED_DEPRECATED_EQUALITY`.
  125. * The behaviour of swap is different when the two containers to be
  126. swapped has unequal allocators. It used to allocate new nodes using
  127. the appropriate allocators, it now swaps the allocators if
  128. the allocator has a member structure `propagate_on_container_swap`,
  129. such that `propagate_on_container_swap::value` is true.
  130. * Allocator's `construct` and `destroy` functions are called with raw
  131. pointers, rather than the allocator's `pointer` type.
  132. * `emplace` used to emulate the variadic pair constructors that
  133. appeared in early C++0x drafts. Since they were removed it no
  134. longer does so. It does emulate the new `piecewise_construct`
  135. pair constructors - only you need to use
  136. `boost::piecewise_construct`. To use the old emulation of
  137. the variadic constructors define
  138. `BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT`.
  139. [h2 Boost 1.49.0]
  140. * Fix warning due to accidental odd assignment.
  141. * Slightly better error messages.
  142. [h2 Boost 1.50.0]
  143. * Fix equality for `unordered_multiset` and `unordered_multimap`.
  144. * [@https://svn.boost.org/trac/boost/ticket/6857 Ticket 6857]:
  145. Implement `reserve`.
  146. * [@https://svn.boost.org/trac/boost/ticket/6771 Ticket 6771]:
  147. Avoid gcc's `-Wfloat-equal` warning.
  148. * [@https://svn.boost.org/trac/boost/ticket/6784 Ticket 6784]:
  149. Fix some Sun specific code.
  150. * [@https://svn.boost.org/trac/boost/ticket/6190 Ticket 6190]:
  151. Avoid gcc's `-Wshadow` warning.
  152. * [@https://svn.boost.org/trac/boost/ticket/6905 Ticket 6905]:
  153. Make namespaces in macros compatible with `bcp` custom namespaces.
  154. Fixed by Luke Elliott.
  155. * Remove some of the smaller prime number of buckets, as they may make
  156. collisions quite probable (e.g. multiples of 5 are very common because
  157. we used base 10).
  158. * On old versions of Visual C++, use the container library's implementation
  159. of `allocator_traits`, as it's more likely to work.
  160. * On machines with 64 bit std::size_t, use power of 2 buckets, with Thomas
  161. Wang's hash function to pick which one to use. As modulus is very slow
  162. for 64 bit values.
  163. * Some internal changes.
  164. [h2 Boost 1.51.0]
  165. * Fix construction/destruction issue when using a C++11 compiler with a
  166. C++03 allocator ([ticket 7100]).
  167. * Remove a `try..catch` to support compiling without exceptions.
  168. * Adjust SFINAE use to try to support g++ 3.4 ([ticket 7175]).
  169. * Updated to use the new config macros.
  170. [h2 Boost 1.52.0]
  171. * Faster assign, which assigns to existing nodes where possible, rather than
  172. creating entirely new nodes and copy constructing.
  173. * Fixed bug in `erase_range` ([ticket 7471]).
  174. * Reverted some of the internal changes to how nodes are created, especially
  175. for C++11 compilers. 'construct' and 'destroy' should work a little better
  176. for C++11 allocators.
  177. * Simplified the implementation a bit. Hopefully more robust.
  178. [h2 Boost 1.53.0]
  179. * Remove support for the old pre-standard variadic pair constructors, and
  180. equality implementation. Both have been deprecated since Boost 1.48.
  181. * Remove use of deprecated config macros.
  182. * More internal implementation changes, including a much simpler
  183. implementation of `erase`.
  184. [h2 Boost 1.54.0]
  185. * Mark methods specified in standard as `noexpect`. More to come in the next
  186. release.
  187. * If the hash function and equality predicate are known to both have nothrow
  188. move assignment or construction then use them.
  189. [h2 Boost 1.55.0]
  190. * Avoid some warnings ([ticket 8851], [ticket 8874]).
  191. * Avoid exposing some detail functions via. ADL on the iterators.
  192. * Follow the standard by only using the allocators' construct and destroy
  193. methods to construct and destroy stored elements. Don't use them for internal
  194. data like pointers.
  195. [h2 Boost 1.56.0]
  196. * Fix some shadowed variable warnings ([ticket 9377]).
  197. * Fix allocator use in documentation ([ticket 9719]).
  198. * Always use prime number of buckets for integers. Fixes performance
  199. regression when inserting consecutive integers, although makes other
  200. uses slower ([ticket 9282]).
  201. * Only construct elements using allocators, as specified in C++11 standard.
  202. [h2 Boost 1.57.0]
  203. * Fix the `pointer` typedef in iterators ([ticket 10672]).
  204. * Fix Coverity warning
  205. ([@https://github.com/boostorg/unordered/pull/2 GitHub #2]).
  206. [h2 Boost 1.58.0]
  207. * Remove unnecessary template parameter from const iterators.
  208. * Rename private `iterator` typedef in some iterator classes, as it
  209. confuses some traits classes.
  210. * Fix move assignment with stateful, propagate_on_container_move_assign
  211. allocators ([ticket 10777]).
  212. * Fix rare exception safety issue in move assignment.
  213. * Fix potential overflow when calculating number of buckets to allocate
  214. ([@https://github.com/boostorg/unordered/pull/4 GitHub #4]).
  215. [h2 Boost 1.62.0]
  216. * Remove use of deprecated `boost::iterator`.
  217. * Remove `BOOST_NO_STD_DISTANCE` workaround.
  218. * Remove `BOOST_UNORDERED_DEPRECATED_EQUALITY` warning.
  219. * Simpler implementation of assignment, fixes an exception safety issue
  220. for `unordered_multiset` and `unordered_multimap`. Might be a little slower.
  221. * Stop using return value SFINAE which some older compilers have issues
  222. with.
  223. [h2 Boost 1.63.0]
  224. * Check hint iterator in `insert`/`emplace_hint`.
  225. * Fix some warnings, mostly in the tests.
  226. * Manually write out `emplace_args` for small numbers of arguments -
  227. should make template error messages a little more bearable.
  228. * Remove superfluous use of `boost::forward` in emplace arguments,
  229. which fixes emplacing string literals in old versions of Visual C++.
  230. * Fix an exception safety issue in assignment. If bucket allocation
  231. throws an exception, it can overwrite the hash and equality functions while
  232. leaving the existing elements in place. This would mean that the function
  233. objects wouldn't match the container elements, so elements might be in the
  234. wrong bucket and equivalent elements would be incorrectly handled.
  235. * Various reference documentation improvements.
  236. * Better allocator support ([ticket 12459]).
  237. * Make the no argument constructors implicit.
  238. * Implement missing allocator aware constructors.
  239. * Fix assigning the hash/key equality functions for empty containers.
  240. * Remove unary/binary_function from the examples in the documentation.
  241. They are removed in C++17.
  242. * Support 10 constructor arguments in emplace. It was meant to support up to 10
  243. arguments, but an off by one error in the preprocessor code meant it only
  244. supported up to 9.
  245. [h2 Boost 1.64.0]
  246. * Initial support for new C++17 member functions:
  247. `insert_or_assign` and `try_emplace` in `unordered_map`,
  248. * Initial support for `merge` and `extract`.
  249. Does not include transferring nodes between
  250. `unordered_map` and `unordered_multimap` or between `unordered_set` and
  251. `unordered_multiset` yet. That will hopefully be in the next version of
  252. Boost.
  253. [h2 Boost 1.65.0]
  254. * Add deprecated attributes to `quick_erase` and `erase_return_void`.
  255. I really will remove them in a future version this time.
  256. * Small standards compliance fixes:
  257. * `noexpect` specs for `swap` free functions.
  258. * Add missing `insert(P&&)` methods.
  259. [h2 Boost 1.66.0]
  260. * Simpler move construction implementation.
  261. * Documentation fixes ([pull_request 6]).
  262. [h2 Boost 1.67.0]
  263. * Improved C++17 support:
  264. * Add template deduction guides from the standard.
  265. * Use a simple implementation of `optional` in node handles, so
  266. that they're closer to the standard.
  267. * Add missing `noexcept` specifications to `swap`, `operator=`
  268. and node handles, and change the implementation to match.
  269. Using `std::allocator_traits::is_always_equal`, or our own
  270. implementation when not available, and
  271. `boost::is_nothrow_swappable` in the implementation.
  272. * Improved C++20 support:
  273. * Use `boost::to_address`, which has the proposed C++20 semantics,
  274. rather than the old custom implementation.
  275. * Add `element_type` to iterators, so that `std::pointer_traits`
  276. will work.
  277. * Use `std::piecewise_construct` on recent versions of Visual C++,
  278. and other uses of the Dinkumware standard library,
  279. now using Boost.Predef to check compiler and library versions.
  280. * Use `std::iterator_traits` rather than the boost iterator traits
  281. in order to remove dependency on Boost.Iterator.
  282. * Remove iterators' inheritance from `std::iterator`, which is
  283. deprecated in C++17, thanks to Daniela Engert
  284. ([@https://github.com/boostorg/unordered/pull/7 PR#7]).
  285. * Stop using `BOOST_DEDUCED_TYPENAME`.
  286. * Update some Boost include paths.
  287. * Rename some internal methods, and variables.
  288. * Various testing improvements.
  289. * Miscellaneous internal changes.
  290. [endsect]