| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Copyright (C) 2003-2004 Jeremy B. Maitin-Shepard.
 | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  | // Copyright (C) 2005-2011 Daniel James.
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +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)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //  See http://www.boost.org/libs/unordered for documentation
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
 | 
					
						
							|  |  |  | #define BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if defined(_MSC_VER) && (_MSC_VER >= 1020)
 | 
					
						
							|  |  |  | # pragma once
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <boost/unordered/unordered_map_fwd.hpp>
 | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | #include <boost/unordered/detail/allocator_helpers.hpp>
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  | #include <boost/unordered/detail/equivalent.hpp>
 | 
					
						
							|  |  |  | #include <boost/unordered/detail/unique.hpp>
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #include <boost/unordered/detail/util.hpp>
 | 
					
						
							|  |  |  | #include <boost/functional/hash.hpp>
 | 
					
						
							|  |  |  | #include <boost/move/move.hpp>
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-20 06:43:38 +00:00
										 |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							|  |  |  | #include <initializer_list>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-11-14 16:11:16 +00:00
										 |  |  | #if defined(BOOST_MSVC)
 | 
					
						
							|  |  |  | #pragma warning(push)
 | 
					
						
							|  |  |  | #if BOOST_MSVC >= 1400
 | 
					
						
							|  |  |  | #pragma warning(disable:4396) //the inline specifier cannot be used when a
 | 
					
						
							|  |  |  |                               // friend declaration refers to a specialization
 | 
					
						
							|  |  |  |                               // of a function template
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | namespace boost | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  | { | 
					
						
							|  |  |  | namespace unordered | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     class unordered_map | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  |         BOOST_COPYABLE_AND_MOVABLE(unordered_map) | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-27 18:19:32 +00:00
										 |  |  |     public: | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |         typedef K key_type; | 
					
						
							|  |  |  |         typedef std::pair<const K, T> value_type; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |         typedef T mapped_type; | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |         typedef H hasher; | 
					
						
							|  |  |  |         typedef P key_equal; | 
					
						
							|  |  |  |         typedef A allocator_type; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     private: | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef typename boost::unordered::detail::rebind_wrap< | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |                 allocator_type, value_type>::type | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             value_allocator; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef boost::unordered::detail::allocator_traits<value_allocator> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             allocator_traits; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef boost::unordered::detail::map<value_allocator, K, H, P> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             types; | 
					
						
							|  |  |  |         typedef typename types::table table; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     public: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |         typedef typename allocator_traits::pointer pointer; | 
					
						
							|  |  |  |         typedef typename allocator_traits::const_pointer const_pointer; | 
					
						
							| 
									
										
										
										
											2011-08-11 21:17:57 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         typedef value_type& reference; | 
					
						
							|  |  |  |         typedef value_type const& const_reference; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-31 10:39:40 +00:00
										 |  |  |         typedef std::size_t size_type; | 
					
						
							|  |  |  |         typedef std::ptrdiff_t difference_type; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         typedef typename table::cl_iterator const_local_iterator; | 
					
						
							|  |  |  |         typedef typename table::l_iterator local_iterator; | 
					
						
							|  |  |  |         typedef typename table::c_iterator const_iterator; | 
					
						
							|  |  |  |         typedef typename table::iterator iterator; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     private: | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |         table table_; | 
					
						
							|  |  |  |          | 
					
						
							|  |  |  |     public: | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // constructors
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         explicit unordered_map( | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                 size_type = boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 const hasher& = hasher(), | 
					
						
							|  |  |  |                 const key_equal& = key_equal(), | 
					
						
							|  |  |  |                 const allocator_type& = allocator_type()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         explicit unordered_map(allocator_type const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         unordered_map(InputIt, InputIt); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map( | 
					
						
							|  |  |  |                 InputIt, InputIt, | 
					
						
							|  |  |  |                 size_type, | 
					
						
							|  |  |  |                 const hasher& = hasher(), | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                 const key_equal& = key_equal()); | 
					
						
							| 
									
										
										
										
											2009-07-23 22:17:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map( | 
					
						
							|  |  |  |                 InputIt, InputIt, | 
					
						
							|  |  |  |                 size_type, | 
					
						
							|  |  |  |                 const hasher&, | 
					
						
							|  |  |  |                 const key_equal&, | 
					
						
							|  |  |  |                 const allocator_type&); | 
					
						
							| 
									
										
										
										
											2009-05-25 19:14:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // copy/move constructors
 | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-07 10:22:41 +00:00
										 |  |  |         unordered_map(unordered_map const&); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         unordered_map(unordered_map const&, allocator_type const&); | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         unordered_map(BOOST_RV_REF(unordered_map) other) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |             : table_(other.table_, boost::unordered::detail::move_tag()) | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  |         { | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_RVALUE_REFERENCES)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map(unordered_map&&, allocator_type const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-20 06:43:38 +00:00
										 |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map( | 
					
						
							|  |  |  |                 std::initializer_list<value_type>, | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                 size_type = boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 const hasher& = hasher(), | 
					
						
							|  |  |  |                 const key_equal&l = key_equal(), | 
					
						
							|  |  |  |                 const allocator_type& = allocator_type()); | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Destructor
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         ~unordered_map(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Assign
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         unordered_map& operator=(BOOST_COPY_ASSIGN_REF(unordered_map) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             table_.assign(x.table_); | 
					
						
							|  |  |  |             return *this; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         unordered_map& operator=(BOOST_RV_REF(unordered_map) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             table_.move_assign(x.table_); | 
					
						
							|  |  |  |             return *this; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map& operator=(std::initializer_list<value_type>); | 
					
						
							| 
									
										
										
										
											2008-12-04 21:30:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         allocator_type get_allocator() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.node_alloc(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // size and capacity
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         bool empty() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.size_ == 0; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type size() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.size_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         size_type max_size() const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // iterators
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator begin() | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator begin() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return const_iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator end() | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator end() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return const_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator cbegin() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return const_iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator cend() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return const_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // emplace
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-07 08:55:28 +00:00
										 |  |  | #if defined(BOOST_UNORDERED_STD_FORWARD_MOVE)
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         template <class... Args> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         std::pair<iterator, bool> emplace(Args&&... args) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return table_.emplace(std::forward<Args>(args)...); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         template <class... Args> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator emplace_hint(const_iterator, Args&&... args) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return iterator(table_.emplace(std::forward<Args>(args)...).first); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #define BOOST_UNORDERED_EMPLACE(z, n, _)                                    \
 | 
					
						
							|  |  |  |             template <                                                      \ | 
					
						
							|  |  |  |                 BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)                    \ | 
					
						
							|  |  |  |             >                                                               \ | 
					
						
							|  |  |  |             std::pair<iterator, bool> emplace(                              \ | 
					
						
							|  |  |  |                     BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_FWD_PARAM, a)      \ | 
					
						
							|  |  |  |             )                                                               \ | 
					
						
							|  |  |  |             {                                                               \ | 
					
						
							|  |  |  |                 return table_.emplace(                                      \ | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                     boost::unordered::detail::create_emplace_args(          \ | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                         BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_CALL_FORWARD,  \ | 
					
						
							|  |  |  |                             a)                                              \ | 
					
						
							|  |  |  |                 ));                                                         \ | 
					
						
							|  |  |  |             }                                                               \ | 
					
						
							|  |  |  |                                                                             \ | 
					
						
							|  |  |  |             template <                                                      \ | 
					
						
							|  |  |  |                 BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)                    \ | 
					
						
							|  |  |  |             >                                                               \ | 
					
						
							|  |  |  |             iterator emplace_hint(                                          \ | 
					
						
							|  |  |  |                     const_iterator,                                         \ | 
					
						
							|  |  |  |                     BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_FWD_PARAM, a)      \ | 
					
						
							|  |  |  |             )                                                               \ | 
					
						
							|  |  |  |             {                                                               \ | 
					
						
							|  |  |  |                 return iterator(table_.emplace(                             \ | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                     boost::unordered::detail::create_emplace_args(          \ | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                         BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_CALL_FORWARD,  \ | 
					
						
							|  |  |  |                             a)                                              \ | 
					
						
							|  |  |  |                 )).first);                                                  \ | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-07 08:19:53 +00:00
										 |  |  |         BOOST_PP_REPEAT_FROM_TO(1, BOOST_UNORDERED_EMPLACE_LIMIT, | 
					
						
							|  |  |  |             BOOST_UNORDERED_EMPLACE, _) | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #undef BOOST_UNORDERED_EMPLACE
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  | #if !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x5100))
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  |         std::pair<iterator, bool> emplace( | 
					
						
							|  |  |  |                 boost::unordered::detail::empty_emplace | 
					
						
							|  |  |  |                     = boost::unordered::detail::empty_emplace(), | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                 value_type v = value_type()) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace(boost::move(v)); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator emplace_hint(const_iterator hint, | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  |                 boost::unordered::detail::empty_emplace | 
					
						
							|  |  |  |                     = boost::unordered::detail::empty_emplace(), | 
					
						
							|  |  |  |                 value_type v = value_type() | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             ) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace_hint(hint, boost::move(v)); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         std::pair<iterator, bool> insert(value_type const& x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace(x); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         std::pair<iterator, bool> insert(BOOST_RV_REF(value_type) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace(boost::move(x)); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator insert(const_iterator hint, value_type const& x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace_hint(hint, x); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator insert(const_iterator hint, BOOST_RV_REF(value_type) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace_hint(hint, boost::move(x)); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:52 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         template <class InputIt> void insert(InputIt, InputIt); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-03 16:41:32 +00:00
										 |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         void insert(std::initializer_list<value_type>); | 
					
						
							| 
									
										
										
										
											2009-10-03 16:41:32 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         iterator erase(const_iterator); | 
					
						
							|  |  |  |         size_type erase(const key_type&); | 
					
						
							|  |  |  |         iterator erase(const_iterator, const_iterator); | 
					
						
							|  |  |  |         void quick_erase(const_iterator it) { erase(it); } | 
					
						
							|  |  |  |         void erase_return_void(const_iterator it) { erase(it); } | 
					
						
							| 
									
										
										
										
											2010-03-22 00:42:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         void clear(); | 
					
						
							|  |  |  |         void swap(unordered_map&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // observers
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         hasher hash_function() const; | 
					
						
							|  |  |  |         key_equal key_eq() const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         mapped_type& operator[](const key_type&); | 
					
						
							|  |  |  |         mapped_type& at(const key_type&); | 
					
						
							|  |  |  |         mapped_type const& at(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // lookup
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         iterator find(const key_type&); | 
					
						
							|  |  |  |         const_iterator find(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  |         template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |             class CompatiblePredicate> | 
					
						
							|  |  |  |         iterator find( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 CompatibleKey const&, | 
					
						
							|  |  |  |                 CompatibleHash const&, | 
					
						
							|  |  |  |                 CompatiblePredicate const&); | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |             class CompatiblePredicate> | 
					
						
							|  |  |  |         const_iterator find( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 CompatibleKey const&, | 
					
						
							|  |  |  |                 CompatibleHash const&, | 
					
						
							|  |  |  |                 CompatiblePredicate const&) const; | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         size_type count(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         std::pair<iterator, iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         equal_range(const key_type&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         std::pair<const_iterator, const_iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         equal_range(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // bucket interface
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type bucket_count() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return table_.bucket_count_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type max_bucket_count() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.max_bucket_count(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         size_type bucket_size(size_type) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         size_type bucket(const key_type& k) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return table_.hash_function()(k) % table_.bucket_count_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         local_iterator begin(size_type n) | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_local_iterator begin(size_type n) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? const_local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         local_iterator end(size_type) | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         const_local_iterator end(size_type) const | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_local_iterator cbegin(size_type n) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? const_local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         const_local_iterator cend(size_type) const | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // hash policy
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         float max_load_factor() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.mlf_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         float load_factor() const; | 
					
						
							|  |  |  |         void max_load_factor(float); | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         void rehash(size_type); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-03 07:37:14 +00:00
										 |  |  | #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         friend bool operator==<K,T,H,P,A>( | 
					
						
							|  |  |  |                 unordered_map const&, unordered_map const&); | 
					
						
							|  |  |  |         friend bool operator!=<K,T,H,P,A>( | 
					
						
							|  |  |  |                 unordered_map const&, unordered_map const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  |     }; // class template unordered_map
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     class unordered_multimap | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  |         BOOST_COPYABLE_AND_MOVABLE(unordered_multimap) | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-27 18:19:32 +00:00
										 |  |  |     public: | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |         typedef K key_type; | 
					
						
							|  |  |  |         typedef std::pair<const K, T> value_type; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         typedef T mapped_type; | 
					
						
							| 
									
										
										
										
											2009-11-30 18:25:26 +00:00
										 |  |  |         typedef H hasher; | 
					
						
							|  |  |  |         typedef P key_equal; | 
					
						
							|  |  |  |         typedef A allocator_type; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |     private: | 
					
						
							| 
									
										
										
										
											2009-11-20 08:03:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef typename boost::unordered::detail::rebind_wrap< | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |                 allocator_type, value_type>::type | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             value_allocator; | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef boost::unordered::detail::allocator_traits<value_allocator> | 
					
						
							| 
									
										
										
										
											2011-08-11 21:17:57 +00:00
										 |  |  |             allocator_traits; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |         typedef boost::unordered::detail::multimap<value_allocator, K, H, P> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             types; | 
					
						
							|  |  |  |         typedef typename types::table table; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     public: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |         typedef typename allocator_traits::pointer pointer; | 
					
						
							|  |  |  |         typedef typename allocator_traits::const_pointer const_pointer; | 
					
						
							| 
									
										
										
										
											2011-08-11 21:17:57 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         typedef value_type& reference; | 
					
						
							|  |  |  |         typedef value_type const& const_reference; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-31 10:39:40 +00:00
										 |  |  |         typedef std::size_t size_type; | 
					
						
							|  |  |  |         typedef std::ptrdiff_t difference_type; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         typedef typename table::cl_iterator const_local_iterator; | 
					
						
							|  |  |  |         typedef typename table::l_iterator local_iterator; | 
					
						
							|  |  |  |         typedef typename table::c_iterator const_iterator; | 
					
						
							|  |  |  |         typedef typename table::iterator iterator; | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     private: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         table table_; | 
					
						
							|  |  |  |          | 
					
						
							|  |  |  |     public: | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // constructors
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         explicit unordered_multimap( | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                 size_type = boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 const hasher& = hasher(), | 
					
						
							|  |  |  |                 const key_equal& = key_equal(), | 
					
						
							|  |  |  |                 const allocator_type& = allocator_type()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         explicit unordered_multimap(allocator_type const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap(InputIt, InputIt); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap( | 
					
						
							|  |  |  |                 InputIt, InputIt, | 
					
						
							|  |  |  |                 size_type, | 
					
						
							|  |  |  |                 const hasher& = hasher(), | 
					
						
							|  |  |  |                 const key_equal& = key_equal()); | 
					
						
							| 
									
										
										
										
											2009-07-23 22:17:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         template <class InputIt> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap( | 
					
						
							|  |  |  |                 InputIt, InputIt, | 
					
						
							|  |  |  |                 size_type, | 
					
						
							|  |  |  |                 const hasher&, | 
					
						
							|  |  |  |                 const key_equal&, | 
					
						
							|  |  |  |                 const allocator_type&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // copy/move constructors
 | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-07 10:22:41 +00:00
										 |  |  |         unordered_multimap(unordered_multimap const&); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         unordered_multimap(unordered_multimap const&, allocator_type const&); | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         unordered_multimap(BOOST_RV_REF(unordered_multimap) other) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |             : table_(other.table_, boost::unordered::detail::move_tag()) | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  |         { | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_RVALUE_REFERENCES)
 | 
					
						
							|  |  |  |         unordered_multimap(unordered_multimap&&, allocator_type const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-20 06:43:38 +00:00
										 |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap( | 
					
						
							|  |  |  |                 std::initializer_list<value_type>, | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                 size_type = boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 const hasher& = hasher(), | 
					
						
							|  |  |  |                 const key_equal&l = key_equal(), | 
					
						
							|  |  |  |                 const allocator_type& = allocator_type()); | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Destructor
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         ~unordered_multimap(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // Assign
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-07 08:19:53 +00:00
										 |  |  |         unordered_multimap& operator=( | 
					
						
							|  |  |  |                 BOOST_COPY_ASSIGN_REF(unordered_multimap) x) | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         { | 
					
						
							|  |  |  |             table_.assign(x.table_); | 
					
						
							|  |  |  |             return *this; | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         unordered_multimap& operator=(BOOST_RV_REF(unordered_multimap) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             table_.move_assign(x.table_); | 
					
						
							|  |  |  |             return *this; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap& operator=(std::initializer_list<value_type>); | 
					
						
							| 
									
										
										
										
											2008-12-04 21:30:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         allocator_type get_allocator() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.node_alloc(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // size and capacity
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         bool empty() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.size_ == 0; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type size() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.size_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         size_type max_size() const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // iterators
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator begin() | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator begin() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return const_iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator end() | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator end() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return const_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator cbegin() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return const_iterator(table_.begin()); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_iterator cend() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return const_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         // emplace
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-07 08:55:28 +00:00
										 |  |  | #if defined(BOOST_UNORDERED_STD_FORWARD_MOVE)
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         template <class... Args> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator emplace(Args&&... args) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return iterator(table_.emplace(std::forward<Args>(args)...)); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         template <class... Args> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator emplace_hint(const_iterator, Args&&... args) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return iterator(table_.emplace(std::forward<Args>(args)...)); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #define BOOST_UNORDERED_EMPLACE(z, n, _)                                    \
 | 
					
						
							|  |  |  |             template <                                                      \ | 
					
						
							|  |  |  |                 BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)                    \ | 
					
						
							|  |  |  |             >                                                               \ | 
					
						
							|  |  |  |             iterator emplace(                                               \ | 
					
						
							|  |  |  |                     BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_FWD_PARAM, a)      \ | 
					
						
							|  |  |  |             )                                                               \ | 
					
						
							|  |  |  |             {                                                               \ | 
					
						
							|  |  |  |                 return iterator(table_.emplace(                             \ | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                     boost::unordered::detail::create_emplace_args(          \ | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                         BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_CALL_FORWARD,  \ | 
					
						
							|  |  |  |                             a)                                              \ | 
					
						
							|  |  |  |                 )));                                                        \ | 
					
						
							|  |  |  |             }                                                               \ | 
					
						
							|  |  |  |                                                                             \ | 
					
						
							|  |  |  |             template <                                                      \ | 
					
						
							|  |  |  |                 BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)                    \ | 
					
						
							|  |  |  |             >                                                               \ | 
					
						
							|  |  |  |             iterator emplace_hint(                                          \ | 
					
						
							|  |  |  |                     const_iterator,                                         \ | 
					
						
							|  |  |  |                     BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_FWD_PARAM, a)      \ | 
					
						
							|  |  |  |             )                                                               \ | 
					
						
							|  |  |  |             {                                                               \ | 
					
						
							|  |  |  |                 return iterator(table_.emplace(                             \ | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |                     boost::unordered::detail::create_emplace_args(          \ | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                         BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_CALL_FORWARD,  \ | 
					
						
							|  |  |  |                             a)                                              \ | 
					
						
							|  |  |  |                 )));                                                        \ | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-07 08:19:53 +00:00
										 |  |  |         BOOST_PP_REPEAT_FROM_TO(1, BOOST_UNORDERED_EMPLACE_LIMIT, | 
					
						
							|  |  |  |             BOOST_UNORDERED_EMPLACE, _) | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #undef BOOST_UNORDERED_EMPLACE
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  | #if !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x5100))
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  |         iterator emplace( | 
					
						
							|  |  |  |                 boost::unordered::detail::empty_emplace | 
					
						
							|  |  |  |                     = boost::unordered::detail::empty_emplace(), | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                 value_type v = value_type()) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return iterator(this->emplace(boost::move(v))); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator emplace_hint(const_iterator hint, | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  |                 boost::unordered::detail::empty_emplace | 
					
						
							|  |  |  |                     = boost::unordered::detail::empty_emplace(), | 
					
						
							|  |  |  |                 value_type v = value_type() | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             ) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return iterator(this->emplace_hint(hint, boost::move(v))); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator insert(value_type const& x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace(x); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2009-05-10 21:25:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator insert(BOOST_RV_REF(value_type) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace(boost::move(x)); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         iterator insert(const_iterator hint, value_type const& x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace_hint(hint, x); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         iterator insert(const_iterator hint, BOOST_RV_REF(value_type) x) | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             return this->emplace_hint(hint, boost::move(x)); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:52 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 23:52:37 +00:00
										 |  |  |         template <class InputIt> void insert(InputIt, InputIt); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-03 16:41:32 +00:00
										 |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         void insert(std::initializer_list<value_type>); | 
					
						
							| 
									
										
										
										
											2009-10-03 16:41:32 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         iterator erase(const_iterator); | 
					
						
							|  |  |  |         size_type erase(const key_type&); | 
					
						
							|  |  |  |         iterator erase(const_iterator, const_iterator); | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |         void quick_erase(const_iterator it) { erase(it); } | 
					
						
							|  |  |  |         void erase_return_void(const_iterator it) { erase(it); } | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         void clear(); | 
					
						
							|  |  |  |         void swap(unordered_multimap&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // observers
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         hasher hash_function() const; | 
					
						
							|  |  |  |         key_equal key_eq() const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // lookup
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         iterator find(const key_type&); | 
					
						
							|  |  |  |         const_iterator find(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  |         template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |             class CompatiblePredicate> | 
					
						
							|  |  |  |         iterator find( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 CompatibleKey const&, | 
					
						
							|  |  |  |                 CompatibleHash const&, | 
					
						
							|  |  |  |                 CompatiblePredicate const&); | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |             class CompatiblePredicate> | 
					
						
							|  |  |  |         const_iterator find( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 CompatibleKey const&, | 
					
						
							|  |  |  |                 CompatibleHash const&, | 
					
						
							|  |  |  |                 CompatiblePredicate const&) const; | 
					
						
							| 
									
										
										
										
											2009-12-15 22:53:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         size_type count(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         std::pair<iterator, iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         equal_range(const key_type&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         std::pair<const_iterator, const_iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         equal_range(const key_type&) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // bucket interface
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type bucket_count() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return table_.bucket_count_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         size_type max_bucket_count() const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |             return table_.max_bucket_count(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         size_type bucket_size(size_type) const; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         size_type bucket(const key_type& k) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return table_.hash_function()(k) % table_.bucket_count_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         local_iterator begin(size_type n) | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_local_iterator begin(size_type n) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? const_local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         local_iterator end(size_type) | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         const_local_iterator end(size_type) const | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const_local_iterator cbegin(size_type n) const | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |             return table_.size_ ? const_local_iterator( | 
					
						
							|  |  |  |                 table_.get_start(n), n, table_.bucket_count_) : | 
					
						
							|  |  |  |                 const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |         const_local_iterator cend(size_type) const | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2009-09-20 21:55:15 +00:00
										 |  |  |             return const_local_iterator(); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // hash policy
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         float max_load_factor() const | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             return table_.mlf_; | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         float load_factor() const; | 
					
						
							|  |  |  |         void max_load_factor(float); | 
					
						
							|  |  |  |         void rehash(size_type); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-03 07:37:14 +00:00
										 |  |  | #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         friend bool operator==<K,T,H,P,A>( | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                 unordered_multimap const&, unordered_multimap const&); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         friend bool operator!=<K,T,H,P,A>( | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |                 unordered_multimap const&, unordered_multimap const&); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  |     }; // class template unordered_multimap
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | ////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             size_type n, const hasher &hf, const key_equal &eql, | 
					
						
							|  |  |  |             const allocator_type &a) | 
					
						
							|  |  |  |       : table_(n, hf, eql, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map(allocator_type const& a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             hasher(), key_equal(), a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             unordered_map const& other, allocator_type const& a) | 
					
						
							|  |  |  |       : table_(other.table_, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map(InputIt f, InputIt l) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l), | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         hasher(), key_equal(), allocator_type()) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             InputIt f, InputIt l, | 
					
						
							|  |  |  |             size_type n, | 
					
						
							|  |  |  |             const hasher &hf, | 
					
						
							|  |  |  |             const key_equal &eql) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l, n), | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             hf, eql, allocator_type()) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             InputIt f, InputIt l, | 
					
						
							|  |  |  |             size_type n, | 
					
						
							|  |  |  |             const hasher &hf, | 
					
						
							|  |  |  |             const key_equal &eql, | 
					
						
							|  |  |  |             const allocator_type &a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l, n), hf, eql, a) | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::~unordered_map() {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             unordered_map const& other) | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |       : table_(other.table_) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | #if !defined(BOOST_NO_RVALUE_REFERENCES)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             unordered_map&& other, allocator_type const& a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(other.table_, a, boost::unordered::detail::move_tag()) | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>::unordered_map( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list, size_type n, | 
					
						
							|  |  |  |             const hasher &hf, const key_equal &eql, const allocator_type &a) | 
					
						
							|  |  |  |       : table_( | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |             boost::unordered::detail::initial_size( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 list.begin(), list.end(), n), | 
					
						
							|  |  |  |             hf, eql, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_map<K,T,H,P,A>& unordered_map<K,T,H,P,A>::operator=( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.clear(); | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |         return *this; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // size and capacity
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::size_t unordered_map<K,T,H,P,A>::max_size() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.max_size(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // modifiers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::insert(InputIt first, InputIt last) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(first, last); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::insert( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::erase(const_iterator position) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  |         return iterator(table_.erase(position.node_)); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::erase(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.erase_key(k); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::erase( | 
					
						
							|  |  |  |             const_iterator first, const_iterator last) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  |         return iterator(table_.erase_range(first.node_, last.node_)); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::clear() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.clear(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::swap(unordered_map& other) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.swap(other.table_); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // observers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::hasher | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::hash_function() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.hash_function(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::key_equal | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::key_eq() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.key_eq(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::mapped_type& | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::operator[](const key_type &k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_[k].second; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::mapped_type& | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::at(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.at(k).second; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::mapped_type const& | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::at(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.at(k).second; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // lookup
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::find(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return iterator(table_.find_node(k)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::const_iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::find(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return const_iterator(table_.find_node(k)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |         class CompatiblePredicate> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::find( | 
					
						
							|  |  |  |             CompatibleKey const& k, | 
					
						
							|  |  |  |             CompatibleHash const& hash, | 
					
						
							|  |  |  |             CompatiblePredicate const& eq) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return iterator(table_.generic_find_node(k, hash, eq)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |         class CompatiblePredicate> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::const_iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::find( | 
					
						
							|  |  |  |             CompatibleKey const& k, | 
					
						
							|  |  |  |             CompatibleHash const& hash, | 
					
						
							|  |  |  |             CompatiblePredicate const& eq) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return const_iterator(table_.generic_find_node(k, hash, eq)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::count(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.count(k); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::pair< | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |             typename unordered_map<K,T,H,P,A>::iterator, | 
					
						
							|  |  |  |             typename unordered_map<K,T,H,P,A>::iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::equal_range(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-09-02 08:27:27 +00:00
										 |  |  |         return table_.equal_range(k); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::pair< | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |             typename unordered_map<K,T,H,P,A>::const_iterator, | 
					
						
							|  |  |  |             typename unordered_map<K,T,H,P,A>::const_iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::equal_range(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-09-02 08:27:27 +00:00
										 |  |  |         return table_.equal_range(k); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_map<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_map<K,T,H,P,A>::bucket_size(size_type n) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.bucket_size(n); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // hash policy
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     float unordered_map<K,T,H,P,A>::load_factor() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.load_factor(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::max_load_factor(float m) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.max_load_factor(m); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_map<K,T,H,P,A>::rehash(size_type n) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.rehash(n); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     inline bool operator==( | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> const& m1, | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> const& m2) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_map<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |         return m1.table_.equals(m2.table_); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     inline bool operator!=( | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> const& m1, | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> const& m2) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_map<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |         return !m1.table_.equals(m2.table_); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     inline void swap( | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> &m1, | 
					
						
							|  |  |  |             unordered_map<K,T,H,P,A> &m2) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_map<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |         m1.swap(m2); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             size_type n, const hasher &hf, const key_equal &eql, | 
					
						
							|  |  |  |             const allocator_type &a) | 
					
						
							|  |  |  |       : table_(n, hf, eql, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap(allocator_type const& a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::default_bucket_count, | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             hasher(), key_equal(), a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             unordered_multimap const& other, allocator_type const& a) | 
					
						
							|  |  |  |       : table_(other.table_, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap(InputIt f, InputIt l) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l), | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         hasher(), key_equal(), allocator_type()) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             InputIt f, InputIt l, | 
					
						
							|  |  |  |             size_type n, | 
					
						
							|  |  |  |             const hasher &hf, | 
					
						
							|  |  |  |             const key_equal &eql) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l, n), | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |             hf, eql, allocator_type()) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             InputIt f, InputIt l, | 
					
						
							|  |  |  |             size_type n, | 
					
						
							|  |  |  |             const hasher &hf, | 
					
						
							|  |  |  |             const key_equal &eql, | 
					
						
							|  |  |  |             const allocator_type &a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(boost::unordered::detail::initial_size(f, l, n), hf, eql, a) | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(f, l); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::~unordered_multimap() {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             unordered_multimap const& other) | 
					
						
							|  |  |  |       : table_(other.table_) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-03 08:34:33 +00:00
										 |  |  | #if !defined(BOOST_NO_RVALUE_REFERENCES)
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             unordered_multimap&& other, allocator_type const& a) | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |       : table_(other.table_, a, boost::unordered::detail::move_tag()) | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>::unordered_multimap( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list, size_type n, | 
					
						
							|  |  |  |             const hasher &hf, const key_equal &eql, const allocator_type &a) | 
					
						
							|  |  |  |       : table_( | 
					
						
							| 
									
										
										
										
											2011-10-06 08:03:25 +00:00
										 |  |  |             boost::unordered::detail::initial_size( | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |                 list.begin(), list.end(), n), | 
					
						
							|  |  |  |             hf, eql, a) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     unordered_multimap<K,T,H,P,A>& unordered_multimap<K,T,H,P,A>::operator=( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.clear(); | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |         return *this; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2011-10-05 19:45:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // size and capacity
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::size_t unordered_multimap<K,T,H,P,A>::max_size() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.max_size(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // modifiers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class InputIt> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::insert(InputIt first, InputIt last) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(first, last); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::insert( | 
					
						
							|  |  |  |             std::initializer_list<value_type> list) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.insert_range(list.begin(), list.end()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::erase(const_iterator position) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  |         return iterator(table_.erase(position.node_)); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::erase(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.erase_key(k); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::erase( | 
					
						
							|  |  |  |             const_iterator first, const_iterator last) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  |         return iterator(table_.erase_range(first.node_, last.node_)); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::clear() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.clear(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::swap(unordered_multimap& other) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.swap(other.table_); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // observers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::hasher | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::hash_function() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.hash_function(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::key_equal | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::key_eq() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.key_eq(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // lookup
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::find(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return iterator(table_.find_node(k)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::const_iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::find(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return const_iterator(table_.find_node(k)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |         class CompatiblePredicate> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::find( | 
					
						
							|  |  |  |             CompatibleKey const& k, | 
					
						
							|  |  |  |             CompatibleHash const& hash, | 
					
						
							|  |  |  |             CompatiblePredicate const& eq) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return iterator(table_.generic_find_node(k, hash, eq)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     template <class CompatibleKey, class CompatibleHash, | 
					
						
							|  |  |  |         class CompatiblePredicate> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::const_iterator | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::find( | 
					
						
							|  |  |  |             CompatibleKey const& k, | 
					
						
							|  |  |  |             CompatibleHash const& hash, | 
					
						
							|  |  |  |             CompatiblePredicate const& eq) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return const_iterator(table_.generic_find_node(k, hash, eq)); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::count(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.count(k); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::pair< | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |             typename unordered_multimap<K,T,H,P,A>::iterator, | 
					
						
							|  |  |  |             typename unordered_multimap<K,T,H,P,A>::iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::equal_range(const key_type& k) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-09-02 08:27:27 +00:00
										 |  |  |         return table_.equal_range(k); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     std::pair< | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |             typename unordered_multimap<K,T,H,P,A>::const_iterator, | 
					
						
							|  |  |  |             typename unordered_multimap<K,T,H,P,A>::const_iterator> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::equal_range(const key_type& k) const | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2011-09-02 08:27:27 +00:00
										 |  |  |         return table_.equal_range(k); | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-09-02 08:28:19 +00:00
										 |  |  |     typename unordered_multimap<K,T,H,P,A>::size_type | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |         unordered_multimap<K,T,H,P,A>::bucket_size(size_type n) const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.bucket_size(n); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // hash policy
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     float unordered_multimap<K,T,H,P,A>::load_factor() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return table_.load_factor(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::max_load_factor(float m) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.max_load_factor(m); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     void unordered_multimap<K,T,H,P,A>::rehash(size_type n) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         table_.rehash(n); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							|  |  |  |     inline bool operator==( | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> const& m1, | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> const& m2) | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2009-12-04 00:51:50 +00:00
										 |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_multimap<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |         return m1.table_.equals(m2.table_); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     inline bool operator!=( | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> const& m1, | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> const& m2) | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2009-12-04 00:51:50 +00:00
										 |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_multimap<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-08-30 16:42:28 +00:00
										 |  |  |         return !m1.table_.equals(m2.table_); | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template <class K, class T, class H, class P, class A> | 
					
						
							| 
									
										
										
										
											2011-04-16 18:47:33 +00:00
										 |  |  |     inline void swap( | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> &m1, | 
					
						
							|  |  |  |             unordered_multimap<K,T,H,P,A> &m2) | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2009-12-04 00:51:50 +00:00
										 |  |  | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
 | 
					
						
							|  |  |  |         struct dummy { unordered_multimap<K,T,H,P,A> x; }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  |         m1.swap(m2); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-06-04 16:17:07 +00:00
										 |  |  | } // namespace unordered
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | } // namespace boost
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-11-14 16:11:16 +00:00
										 |  |  | #if defined(BOOST_MSVC)
 | 
					
						
							|  |  |  | #pragma warning(pop)
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-09-16 21:49:41 +00:00
										 |  |  | #endif // BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
 |