| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-17 11:11:49 +00:00
										 |  |  | // Copyright (C) 2003-2004 Jeremy B. Maitin-Shepard.
 | 
					
						
							| 
									
										
										
										
											2009-03-09 20:56:23 +00:00
										 |  |  | // Copyright (C) 2005-2009 Daniel James
 | 
					
						
							| 
									
										
										
										
											2006-07-01 22:34:48 +00:00
										 |  |  | // 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)
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifndef BOOST_UNORDERED_DETAIL_HASH_TABLE_HPP_INCLUDED
 | 
					
						
							|  |  |  | #define BOOST_UNORDERED_DETAIL_HASH_TABLE_HPP_INCLUDED
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  | #if defined(_MSC_VER) && (_MSC_VER >= 1020)
 | 
					
						
							|  |  |  | # pragma once
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #include <boost/config.hpp>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <cstddef>
 | 
					
						
							| 
									
										
										
										
											2008-10-10 16:10:00 +00:00
										 |  |  | #include <boost/config/no_tr1/cmath.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #include <algorithm>
 | 
					
						
							|  |  |  | #include <utility>
 | 
					
						
							| 
									
										
										
										
											2007-11-16 00:31:12 +00:00
										 |  |  | #include <stdexcept>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <boost/iterator.hpp>
 | 
					
						
							|  |  |  | #include <boost/iterator/iterator_categories.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  | #include <boost/limits.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #include <boost/assert.hpp>
 | 
					
						
							|  |  |  | #include <boost/static_assert.hpp>
 | 
					
						
							| 
									
										
										
										
											2008-04-20 12:10:56 +00:00
										 |  |  | #include <boost/unordered/detail/allocator_helpers.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #include <boost/type_traits/is_same.hpp>
 | 
					
						
							| 
									
										
										
										
											2008-11-24 23:15:55 +00:00
										 |  |  | #include <boost/type_traits/aligned_storage.hpp>
 | 
					
						
							|  |  |  | #include <boost/type_traits/alignment_of.hpp>
 | 
					
						
							| 
									
										
										
										
											2009-04-14 17:23:37 +00:00
										 |  |  | #include <boost/type_traits/remove_reference.hpp>
 | 
					
						
							|  |  |  | #include <boost/type_traits/remove_const.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #include <boost/mpl/if.hpp>
 | 
					
						
							|  |  |  | #include <boost/mpl/and.hpp>
 | 
					
						
							| 
									
										
										
										
											2009-04-14 17:23:37 +00:00
										 |  |  | #include <boost/mpl/not.hpp>
 | 
					
						
							| 
									
										
										
										
											2006-02-26 18:33:49 +00:00
										 |  |  | #include <boost/detail/workaround.hpp>
 | 
					
						
							| 
									
										
										
										
											2008-11-15 13:07:29 +00:00
										 |  |  | #include <boost/utility/swap.hpp>
 | 
					
						
							| 
									
										
										
										
											2009-05-01 20:50:32 +00:00
										 |  |  | #include <boost/preprocessor/seq/size.hpp>
 | 
					
						
							|  |  |  | #include <boost/preprocessor/seq/enum.hpp>
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <boost/mpl/aux_/config/eti.hpp>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-10 22:30:46 +00:00
										 |  |  | #if BOOST_WORKAROUND(__BORLANDC__, <= 0x0582)
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_BORLAND_BOOL(x) (bool)(x)
 | 
					
						
							| 
									
										
										
										
											2006-02-26 18:33:49 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_BORLAND_BOOL(x) x
 | 
					
						
							| 
									
										
										
										
											2006-02-26 18:33:49 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_MSVC_RESET_PTR(x) unordered_detail::reset(x)
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_MSVC_RESET_PTR(x)
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | namespace boost { | 
					
						
							|  |  |  |     namespace unordered_detail { | 
					
						
							|  |  |  |         template <class T> struct type_wrapper {}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-08 13:59:01 +00:00
										 |  |  |         static const std::size_t default_initial_bucket_count = 50; | 
					
						
							|  |  |  |         static const float minimum_max_load_factor = 1e-3f; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-10 22:30:46 +00:00
										 |  |  |         inline std::size_t double_to_size_t(double f) | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2008-01-10 22:30:46 +00:00
										 |  |  |             return f >= static_cast<double>((std::numeric_limits<std::size_t>::max)()) ? | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  |                 (std::numeric_limits<std::size_t>::max)() : | 
					
						
							|  |  |  |                 static_cast<std::size_t>(f); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         // prime number list, accessor
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |         template<typename T> struct prime_list_template | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             static std::size_t const value[]; | 
					
						
							| 
									
										
										
										
											2008-05-21 20:43:40 +00:00
										 |  |  |             static std::ptrdiff_t const length; | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |         }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-01 20:50:32 +00:00
										 |  |  | #define BOOST_UNORDERED_PRIMES \
 | 
					
						
							|  |  |  |         (5ul)(11ul)(17ul)(29ul)(37ul)(53ul)(67ul)(79ul) \ | 
					
						
							|  |  |  |         (97ul)(131ul)(193ul)(257ul)(389ul)(521ul)(769ul) \ | 
					
						
							|  |  |  |         (1031ul)(1543ul)(2053ul)(3079ul)(6151ul)(12289ul)(24593ul) \ | 
					
						
							|  |  |  |         (49157ul)(98317ul)(196613ul)(393241ul)(786433ul) \ | 
					
						
							|  |  |  |         (1572869ul)(3145739ul)(6291469ul)(12582917ul)(25165843ul) \ | 
					
						
							|  |  |  |         (50331653ul)(100663319ul)(201326611ul)(402653189ul)(805306457ul) \ | 
					
						
							|  |  |  |         (1610612741ul)(3221225473ul)(4294967291ul) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |         template<typename T> | 
					
						
							|  |  |  |         std::size_t const prime_list_template<T>::value[] = { | 
					
						
							| 
									
										
										
										
											2009-05-01 20:50:32 +00:00
										 |  |  |             BOOST_PP_SEQ_ENUM(BOOST_UNORDERED_PRIMES) | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-05-21 20:43:40 +00:00
										 |  |  |         template<typename T> | 
					
						
							| 
									
										
										
										
											2009-05-01 20:50:32 +00:00
										 |  |  |         std::ptrdiff_t const prime_list_template<T>::length | 
					
						
							|  |  |  |             = BOOST_PP_SEQ_SIZE(BOOST_UNORDERED_PRIMES); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #undef BOOST_UNORDERED_PRIMES
 | 
					
						
							| 
									
										
										
										
											2008-05-21 20:43:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |         typedef prime_list_template<std::size_t> prime_list; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         // no throw
 | 
					
						
							|  |  |  |         inline std::size_t next_prime(std::size_t n) { | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |             std::size_t const* const prime_list_begin = prime_list::value; | 
					
						
							|  |  |  |             std::size_t const* const prime_list_end = prime_list_begin + | 
					
						
							| 
									
										
										
										
											2008-05-21 20:43:40 +00:00
										 |  |  |                 prime_list::length; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |             std::size_t const* bound = | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |                 std::lower_bound(prime_list_begin, prime_list_end, n); | 
					
						
							| 
									
										
											  
											
												Merged revisions 41822-41992,41994-42101 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
  
  Change the macros to meet boost guidelines.
  
  I should really have done this before the review. At least it'll give them
  something to say.
........
  r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
  
  Add some parameters to standalone documentation build.
........
  r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
  
  An extra rehash test for inserting a range.
........
  r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
  
  get_for_erase can be static because all the required information is in the iterator.
........
  r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
  
  ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
  r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
  
  Try to make the erase exception requirements a little clearer.
........
  r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
  
  Hopefully clearer comparison of accessors for comparison/hash function objects.
........
  r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
  
  Fix a typo.
........
  r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
  
  Use the locale in the case insensitive comparison, I really should add a test for this.
........
  r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Hervé Brönnimann's improved explanation of the formula for avoiding
  invalidating iterators.
........
  r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
  
  Explicity use the classic locale in the case insensitive example. I could make
  the locale a member, but that would make the example longer. Also, this would be
  a good place to put a note about the need for constant function objects.
........
  r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
  
  Pull the point examples out into test files - fixing a few bugs in the process.
........
  r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  A few reference links for boost::hash, it might be better to link to the
  first page of the Boost.Hash documentation though.
........
  r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
  
  Fix some typos, and use American spelling.
........
  r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Small documentation tweak.
........
  r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Fix some reference documentation errors.
........
  r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Document the explicit constructors.
........
  r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
  r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Fix some complexity errors in the comparison table.
........
  r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Use Mapped instead of T in the documentation.
........
  r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Remove hard-coded length of prime numbers.
........
[SVN r42187]
											
										 
											2007-12-19 23:09:09 +00:00
										 |  |  |             if(bound == prime_list_end) | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |                 bound--; | 
					
						
							|  |  |  |             return *bound; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  |         // no throw
 | 
					
						
							|  |  |  |         inline std::size_t prev_prime(std::size_t n) { | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |             std::size_t const* const prime_list_begin = prime_list::value; | 
					
						
							|  |  |  |             std::size_t const* const prime_list_end = prime_list_begin + | 
					
						
							| 
									
										
										
										
											2008-05-21 20:43:40 +00:00
										 |  |  |                 prime_list::length; | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  |             std::size_t const* bound = | 
					
						
							| 
									
										
										
										
											2008-05-20 15:24:20 +00:00
										 |  |  |                 std::upper_bound(prime_list_begin,prime_list_end, n); | 
					
						
							|  |  |  |             if(bound != prime_list_begin) | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  |                 bound--; | 
					
						
							|  |  |  |             return *bound; | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2008-04-21 15:55:40 +00:00
										 |  |  |          | 
					
						
							|  |  |  |         // Controls how many buckets are allocated and which buckets hash
 | 
					
						
							|  |  |  |         // values map to. Does not contain the buckets themselves, or ever
 | 
					
						
							|  |  |  |         // deal with them directly.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         struct bucket_manager { | 
					
						
							|  |  |  |             std::size_t bucket_count_; | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             bucket_manager() | 
					
						
							|  |  |  |                 : bucket_count_(0) {} | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             explicit bucket_manager(std::size_t n) | 
					
						
							|  |  |  |                 : bucket_count_(next_prime(n)) {} | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             std::size_t bucket_count() const { | 
					
						
							|  |  |  |                 return bucket_count_; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             std::size_t bucket_from_hash(std::size_t hashed) const { | 
					
						
							|  |  |  |                 return hashed % bucket_count_; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |              | 
					
						
							|  |  |  |             std::size_t max_bucket_count(std::size_t max_size) const { | 
					
						
							|  |  |  |                 return prev_prime(max_size); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2005-11-05 16:57:31 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         // pair_cast - used to convert between pair types.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         template <class Dst1, class Dst2, class Src1, class Src2> | 
					
						
							|  |  |  |         inline std::pair<Dst1, Dst2> pair_cast(std::pair<Src1, Src2> const& x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return std::pair<Dst1, Dst2>(Dst1(x.first), Dst2(x.second)); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
											  
											
												Merged revisions 42882-42941 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/trunk
................
  r42887 | danieljames | 2008-01-20 21:32:04 +0000 (Sun, 20 Jan 2008) | 10 lines
  
  Merged revisions 42590-42664,42667-42697,42699-42723,42725-42855,42857-42881 via svnmerge from 
  https://svn.boost.org/svn/boost/trunk
  
  ........
    r42881 | danieljames | 2008-01-20 17:37:21 +0000 (Sun, 20 Jan 2008) | 1 line
    
    Include <new> to get std::bad_alloc.
  ........
................
  r42892 | danieljames | 2008-01-21 13:03:16 +0000 (Mon, 21 Jan 2008) | 1 line
  
  On some compilers the Rogue Wave/Apache stdcxx library doesn't have the normal std::distance, but instead has a variant that takes the result as the third parameter so it doesn't have to work out the type from the iterator.
................
  r42893 | danieljames | 2008-01-21 13:07:58 +0000 (Mon, 21 Jan 2008) | 1 line
  
  Fix a typo in the last commit.
................
  r42895 | danieljames | 2008-01-21 13:33:29 +0000 (Mon, 21 Jan 2008) | 1 line
  
  Remove tabs from the last checkin.
................
  r42896 | danieljames | 2008-01-21 15:51:40 +0000 (Mon, 21 Jan 2008) | 1 line
  
  Use Boost config to tell when we have a std::distance function. Also, no need for a macro.
................
  r42908 | danieljames | 2008-01-21 21:37:04 +0000 (Mon, 21 Jan 2008) | 1 line
  
  Use boost::long_long_type and boost::ulong_long_type.
................
  r42921 | danieljames | 2008-01-23 11:43:35 +0000 (Wed, 23 Jan 2008) | 1 line
  
  Remove some tabs.
................
  r42922 | danieljames | 2008-01-23 11:46:28 +0000 (Wed, 23 Jan 2008) | 2 lines
  
  Add missing include. Refs #1596
................
  r42923 | danieljames | 2008-01-23 11:52:47 +0000 (Wed, 23 Jan 2008) | 2 lines
  
  Always use void const* for the second parameter of allocate. Refs #1596.
................
  r42936 | danieljames | 2008-01-23 22:22:16 +0000 (Wed, 23 Jan 2008) | 1 line
  
  Use Boost style library name in the documentation.
................
  r42937 | danieljames | 2008-01-23 22:22:32 +0000 (Wed, 23 Jan 2008) | 1 line
  
  More tabs.
................
  r42941 | danieljames | 2008-01-23 23:35:01 +0000 (Wed, 23 Jan 2008) | 1 line
  
  Fix all the allocators.
................
[SVN r42943]
											
										 
											2008-01-23 23:39:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_STD_DISTANCE)
 | 
					
						
							|  |  |  |         using ::std::distance; | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |         template <class ForwardIterator> | 
					
						
							|  |  |  |         inline std::size_t distance(ForwardIterator i, ForwardIterator j) { | 
					
						
							|  |  |  |             std::size_t x; | 
					
						
							|  |  |  |             std::distance(i, j, x); | 
					
						
							|  |  |  |             return x; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Movable unordered containers, full support only for compilers with rvalue references.
Merged revisions 44076-44414 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/trunk
........
  r44076 | danieljames | 2008-04-06 20:41:19 +0100 (Sun, 06 Apr 2008) | 1 line
  
  Move semantics for compilers with rvalue references.
........
  r44077 | danieljames | 2008-04-06 20:48:59 +0100 (Sun, 06 Apr 2008) | 1 line
  
  Do move assignment 'properly'.
........
  r44085 | danieljames | 2008-04-06 22:46:04 +0100 (Sun, 06 Apr 2008) | 1 line
  
  Use normal references for the move members, reset the source buckets_ pointer to stop the buckets getting deleted, and remove a superflous pointer check.
........
  r44109 | danieljames | 2008-04-07 23:49:36 +0100 (Mon, 07 Apr 2008) | 1 line
  
  Add missing tests.
........
  r44366 | danieljames | 2008-04-13 12:59:46 +0100 (Sun, 13 Apr 2008) | 1 line
  
  Avoid using rvalue references in the implementation files.
........
  r44368 | danieljames | 2008-04-13 15:13:33 +0100 (Sun, 13 Apr 2008) | 6 lines
  
  Use a cut down version of the work in progress move library to implement move
  semantics on more compilers. Unfortunately the move constructor with allocator
  isn't really practical at the moment, since in the case where the container
  can't be moved, and the allocators aren't equal it will copy the container
  twice.
........
[SVN r44486]
											
										 
											2008-04-17 07:34:15 +00:00
										 |  |  |         struct move_tag {}; | 
					
						
							| 
									
										
										
										
											2008-04-17 07:45:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // Both hasher and key_equal's copy/assign can throw so double
 | 
					
						
							|  |  |  |         // buffering is used to copy them.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         template <typename Hash, typename Pred> | 
					
						
							|  |  |  |         struct buffered_functions | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             typedef Hash hasher; | 
					
						
							|  |  |  |             typedef Pred key_equal; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             class functions | 
					
						
							|  |  |  |             { | 
					
						
							|  |  |  |                 std::pair<hasher, key_equal> functions_; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             public: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 functions(hasher const& h, key_equal const& k) | 
					
						
							|  |  |  |                     : functions_(h, k) {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 hasher const& hash_function() const | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                     return functions_.first; | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 key_equal const& key_eq() const | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                     return functions_.second; | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             typedef functions buffered_functions::*functions_ptr; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             buffered_functions(hasher const& h, key_equal const& k) | 
					
						
							|  |  |  |                 : func1_(h, k), func2_(h, k), func_(&buffered_functions::func1_) {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             // This copies the given function objects into the currently unused
 | 
					
						
							|  |  |  |             // function objects and returns a pointer, that func_ can later be
 | 
					
						
							|  |  |  |             // set to, to commit the change.
 | 
					
						
							|  |  |  |             //
 | 
					
						
							|  |  |  |             // Strong exception safety (since only usued function objects are
 | 
					
						
							|  |  |  |             // changed).
 | 
					
						
							|  |  |  |             functions_ptr buffer(buffered_functions const& x) { | 
					
						
							|  |  |  |                 functions_ptr ptr = func_ == &buffered_functions::func1_ | 
					
						
							|  |  |  |                     ? &buffered_functions::func2_ : &buffered_functions::func1_; | 
					
						
							|  |  |  |                 this->*ptr = x.current(); | 
					
						
							|  |  |  |                 return ptr; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             void set(functions_ptr ptr) { | 
					
						
							|  |  |  |                 BOOST_ASSERT(ptr != func_); | 
					
						
							|  |  |  |                 func_ = ptr; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             functions const& current() const { | 
					
						
							|  |  |  |                 return this->*func_; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         private: | 
					
						
							|  |  |  |             functions func1_; | 
					
						
							|  |  |  |             functions func2_; | 
					
						
							|  |  |  |             functions_ptr func_; // The currently active functions.
 | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2009-03-26 21:09:51 +00:00
										 |  |  |          | 
					
						
							|  |  |  | #if defined(BOOST_MSVC)
 | 
					
						
							|  |  |  | #  define BOOST_UNORDERED_DESTRUCT(x, type) (x)->~type();
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #  define BOOST_UNORDERED_DESTRUCT(x, type) boost::unordered_detail::destroy(x)
 | 
					
						
							|  |  |  |         template <typename T> | 
					
						
							|  |  |  |         void destroy(T* x) { | 
					
						
							|  |  |  |             x->~T(); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_EQUIVALENT_KEYS 1
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | #include <boost/unordered/detail/hash_table_impl.hpp>
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #undef BOOST_UNORDERED_EQUIVALENT_KEYS
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #define BOOST_UNORDERED_EQUIVALENT_KEYS 0
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | #include <boost/unordered/detail/hash_table_impl.hpp>
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #undef BOOST_UNORDERED_EQUIVALENT_KEYS
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  | namespace boost { | 
					
						
							|  |  |  |     namespace unordered_detail { | 
					
						
							|  |  |  |         class iterator_access | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  |         public: | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             template <class Iterator> | 
					
						
							|  |  |  |             static BOOST_DEDUCED_TYPENAME Iterator::base const& get(Iterator const& it) { | 
					
						
							|  |  |  |                 return it.base_; | 
					
						
							|  |  |  |             } | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         template <class ValueType, class KeyType, | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             class Hash, class Pred, class Alloc> | 
					
						
							|  |  |  |         class hash_types_unique_keys | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         { | 
					
						
							|  |  |  |         public: | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME | 
					
						
							|  |  |  |                 boost::unordered_detail::rebind_wrap<Alloc, ValueType>::type | 
					
						
							|  |  |  |                 value_allocator; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef hash_table_unique_keys<ValueType, KeyType, Hash, Pred, | 
					
						
							|  |  |  |                     value_allocator> hash_table; | 
					
						
							|  |  |  |             typedef hash_table_data_unique_keys<value_allocator> data; | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME data::iterator_base iterator_base; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef hash_const_local_iterator_unique_keys<value_allocator> const_local_iterator; | 
					
						
							|  |  |  |             typedef hash_local_iterator_unique_keys<value_allocator> local_iterator; | 
					
						
							|  |  |  |             typedef hash_const_iterator_unique_keys<value_allocator> const_iterator; | 
					
						
							|  |  |  |             typedef hash_iterator_unique_keys<value_allocator> iterator; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME data::size_type size_type; | 
					
						
							|  |  |  |             typedef std::ptrdiff_t difference_type; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         template <class ValueType, class KeyType, | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             class Hash, class Pred, class Alloc> | 
					
						
							|  |  |  |         class hash_types_equivalent_keys | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |         { | 
					
						
							|  |  |  |         public: | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME | 
					
						
							|  |  |  |                 boost::unordered_detail::rebind_wrap<Alloc, ValueType>::type | 
					
						
							|  |  |  |                 value_allocator; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef hash_table_equivalent_keys<ValueType, KeyType, Hash, Pred, | 
					
						
							|  |  |  |                     value_allocator> hash_table; | 
					
						
							|  |  |  |             typedef hash_table_data_equivalent_keys<value_allocator> data; | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME data::iterator_base iterator_base; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-07 13:24:17 +00:00
										 |  |  |             typedef hash_const_local_iterator_equivalent_keys<value_allocator> const_local_iterator; | 
					
						
							|  |  |  |             typedef hash_local_iterator_equivalent_keys<value_allocator> local_iterator; | 
					
						
							|  |  |  |             typedef hash_const_iterator_equivalent_keys<value_allocator> const_iterator; | 
					
						
							|  |  |  |             typedef hash_iterator_equivalent_keys<value_allocator> iterator; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-20 21:55:28 +00:00
										 |  |  |             typedef BOOST_DEDUCED_TYPENAME data::size_type size_type; | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  |             typedef std::ptrdiff_t difference_type; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |     } // namespace boost::unordered_detail
 | 
					
						
							|  |  |  | } // namespace boost
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 41808-41821,41823-41927,41934-41942,41944-41950,41952-41993,41998-42091,42094-42095,42104-42105,42107,42109,42111-42152,42154,42160-42171,42173-42180,42183-42196,42198-42402 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/dev
........
  r41993 | danieljames | 2007-12-13 00:23:27 +0000 (Thu, 13 Dec 2007) | 3 lines
  
  Add the hash documentation to the unordered library so that it'll be easier to
  link between the libraries.
........
  r42104 | danieljames | 2007-12-16 13:36:50 +0000 (Sun, 16 Dec 2007) | 1 line
  
  Don't include any hash source in tarballs (although I'm including the documentation).
........
  r42198 | danieljames | 2007-12-20 10:49:10 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Restore the extra warnings in the unit tests.
........
  r42199 | danieljames | 2007-12-20 11:25:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Make a cast explicit in order to avoid a warning.
........
  r42203 | danieljames | 2007-12-20 15:54:31 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use 'BOOST_UNORDERED' prefix for macros.
........
  r42209 | danieljames | 2007-12-20 19:41:17 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Initialise this branch (hopefully..)
........
  r42210 | danieljames | 2007-12-20 19:51:21 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Merge in changes.
........
  r42215 | danieljames | 2007-12-20 21:15:42 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Don't add size_type to pointers, cast to difference_type.
........
  r42216 | danieljames | 2007-12-20 21:17:38 +0000 (Thu, 20 Dec 2007) | 1 line
  
  I messed up the last commit, this fixes it.
........
  r42218 | danieljames | 2007-12-20 21:22:20 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Get rid of last_in_group.
........
  r42219 | danieljames | 2007-12-20 21:27:46 +0000 (Thu, 20 Dec 2007) | 1 line
  
  Use node_count to implement group_count.
........
  r42231 | danieljames | 2007-12-21 12:04:52 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Some minor changes for Visual C++.
........
  r42233 | danieljames | 2007-12-21 19:41:27 +0000 (Fri, 21 Dec 2007) | 1 line
  
  Inline some more methods.
........
  r42335 | danieljames | 2007-12-29 13:14:45 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Some of the changes to the introduction mention in the review. Hopefully this
  will make it a little clearer.
........
  r42336 | danieljames | 2007-12-29 13:16:55 +0000 (Sat, 29 Dec 2007) | 3 lines
  
  Try to make the buckets explanation a little easier to read. Most of the
  changes were based on Jamie Allsop (same for the last commit).
........
  r42339 | danieljames | 2007-12-29 16:00:32 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Specify the namespace for 'std::out_of_range' in the reference documentation.
........
  r42345 | danieljames | 2007-12-29 20:41:10 +0000 (Sat, 29 Dec 2007) | 8 lines
  
  Rewrite much of the 'controlling the number of buckets' section.
  
  I'm trying to make it clearer. It's a bit tricky as the standard doesn't guarantee much.
  Instead of diving straight into the details I have tried to give the reader a rough
  idea of what 'rehash' does and what the load factor is. This is hopefully enough to
  understand the more detailled discussion of how you can control the number of buckets.
  Then finally I discuss iterator invalidation.
........
  r42346 | danieljames | 2007-12-29 20:52:22 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Move the table summarizing methods for controlling bucket size next to the discussion of these methods. The paragraphs about insert and invalidating iterator moves on to something else.
........
  r42348 | danieljames | 2007-12-29 20:55:30 +0000 (Sat, 29 Dec 2007) | 1 line
  
  Fix the badly marked up bullet points.
........
  r42349 | danieljames | 2007-12-29 20:57:53 +0000 (Sat, 29 Dec 2007) | 2 lines
  
  We now have cbegin and cend for local iterators.
........
[SVN r42403]
											
										 
											2008-01-01 20:21:04 +00:00
										 |  |  | #undef BOOST_UNORDERED_BORLAND_BOOL
 | 
					
						
							|  |  |  | #undef BOOST_UNORDERED_MSVC_RESET_PTR
 | 
					
						
							| 
									
										
										
										
											2006-02-26 18:33:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-24 14:23:24 +00:00
										 |  |  | #endif // BOOST_UNORDERED_DETAIL_HASH_TABLE_HPP_INCLUDED
 |