From b5db48b6a4c68e9cf3a44fa1ba032b9bfa9d0c8d Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 30 Apr 2008 07:57:04 +0000 Subject: [PATCH] Merge in support for equality operators for the unordered containers and hopefully better cross-platform support. Merged revisions 44778-44835,44837-44918 via svnmerge from https://svn.boost.org/svn/boost/branches/unordered/trunk ........ r44778 | danieljames | 2008-04-26 17:15:44 +0100 (Sat, 26 Apr 2008) | 2 lines Remove a trailing comma. ........ r44779 | danieljames | 2008-04-26 17:23:51 +0100 (Sat, 26 Apr 2008) | 1 line Merge in support for equality operators. ........ r44780 | danieljames | 2008-04-26 17:28:44 +0100 (Sat, 26 Apr 2008) | 1 line Use my own list container to avoid working around STL container bugs. ........ r44833 | danieljames | 2008-04-28 08:03:43 +0100 (Mon, 28 Apr 2008) | 1 line Better equality tests. ........ r44834 | danieljames | 2008-04-28 08:04:03 +0100 (Mon, 28 Apr 2008) | 1 line Remove a superfluous check. ........ r44835 | danieljames | 2008-04-28 08:04:21 +0100 (Mon, 28 Apr 2008) | 1 line Add equality reference documentation. ........ r44916 | danieljames | 2008-04-30 08:16:52 +0100 (Wed, 30 Apr 2008) | 1 line New version of list.hpp ........ r44917 | danieljames | 2008-04-30 08:18:31 +0100 (Wed, 30 Apr 2008) | 1 line Support compilers without ADL in the compile tests. ........ r44918 | danieljames | 2008-04-30 08:25:20 +0100 (Wed, 30 Apr 2008) | 7 lines Change the typedef of buffered functions as it was confusing MSVC 6.5 get_allocator wasn't compiling when the allocator workaround is used because it couldn't cast from the wrapped allocator to an allocator of another type. So use value_alloc_ when it's available (it's only unavailable on compilers with C++0x support, which don't require the workaround). ........ [SVN r44919] --- doc/ref.xml | 272 ++++++++++++++++++ .../unordered/detail/hash_table_impl.hpp | 109 ++++++- include/boost/unordered_map.hpp | 32 ++- include/boost/unordered_set.hpp | 32 ++- test/helpers/equivalent.hpp | 23 +- test/helpers/metafunctions.hpp | 29 -- test/helpers/random_values.hpp | 4 +- test/helpers/strong.hpp | 10 +- test/helpers/test.hpp | 2 +- test/helpers/tracker.hpp | 31 +- test/objects/minimal.hpp | 36 +++ test/unordered/Jamfile.v2 | 1 + test/unordered/compile_map.cpp | 37 +++ test/unordered/compile_set.cpp | 30 ++ test/unordered/compile_tests.hpp | 18 +- test/unordered/constructor_tests.cpp | 6 +- test/unordered/equality_tests.cpp | 143 +++++++++ test/unordered/equivalent_keys_tests.cpp | 4 +- test/unordered/erase_equiv_tests.cpp | 16 +- test/unordered/find_tests.cpp | 4 +- test/unordered/insert_tests.cpp | 5 +- 21 files changed, 745 insertions(+), 99 deletions(-) create mode 100644 test/unordered/equality_tests.cpp diff --git a/doc/ref.xml b/doc/ref.xml index 08b061ac..5cd4362e 100644 --- a/doc/ref.xml +++ b/doc/ref.xml @@ -657,6 +657,71 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + + unordered_set<Value, Hash, Pred, Alloc> const& + + + unordered_set<Value, Hash, Pred, Alloc> const& + + bool + + This is a boost extension. + + + + + + unordered_set<Value, Hash, Pred, Alloc> const& + + + unordered_set<Value, Hash, Pred, Alloc> const& + + bool + + This is a boost extension. + + + + + + unordered_set<Value, Hash, Pred, Alloc> const& + + std::size_t + + This is a boost extension. + + +