mirror of
https://github.com/boostorg/unordered.git
synced 2025-10-04 11:41:03 +02:00
Use pre-review copy of unordered for trunk.
[SVN r42183]
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/unordered/detail/hash_table.hpp>
|
||||
#include <boost/functional/hash.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@@ -264,6 +264,7 @@ namespace boost
|
||||
return const_local_iterator(base.end(n));
|
||||
}
|
||||
|
||||
#if defined(BOOST_UNORDERED_LOCAL_CBEGIN)
|
||||
const_local_iterator cbegin(size_type n) const
|
||||
{
|
||||
return const_local_iterator(base.begin(n));
|
||||
@@ -273,6 +274,7 @@ namespace boost
|
||||
{
|
||||
return const_local_iterator(base.end(n));
|
||||
}
|
||||
#endif
|
||||
|
||||
// hash policy
|
||||
|
||||
@@ -295,21 +297,6 @@ namespace boost
|
||||
{
|
||||
base.rehash(n);
|
||||
}
|
||||
|
||||
friend bool operator==(unordered_set const& m1, unordered_set const& m2)
|
||||
{
|
||||
return m1.base.equals(m2.base);
|
||||
}
|
||||
|
||||
friend bool operator!=(unordered_set const& m1, unordered_set const& m2)
|
||||
{
|
||||
return !m1.base.equals(m2.base);
|
||||
}
|
||||
|
||||
friend std::size_t hash_value(unordered_set const& m)
|
||||
{
|
||||
return m.base.hash_value();
|
||||
}
|
||||
}; // class template unordered_set
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -561,6 +548,7 @@ namespace boost
|
||||
return const_local_iterator(base.end(n));
|
||||
}
|
||||
|
||||
#if defined(BOOST_UNORDERED_LOCAL_CBEGIN)
|
||||
const_local_iterator cbegin(size_type n) const
|
||||
{
|
||||
return const_local_iterator(base.begin(n));
|
||||
@@ -570,6 +558,7 @@ namespace boost
|
||||
{
|
||||
return const_local_iterator(base.end(n));
|
||||
}
|
||||
#endif
|
||||
|
||||
// hash policy
|
||||
|
||||
@@ -592,21 +581,6 @@ namespace boost
|
||||
{
|
||||
base.rehash(n);
|
||||
}
|
||||
|
||||
friend bool operator==(unordered_multiset const& m1, unordered_multiset const& m2)
|
||||
{
|
||||
return m1.base.equals(m2.base);
|
||||
}
|
||||
|
||||
friend bool operator!=(unordered_multiset const& m1, unordered_multiset const& m2)
|
||||
{
|
||||
return !m1.base.equals(m2.base);
|
||||
}
|
||||
|
||||
friend std::size_t hash_value(unordered_multiset const& m)
|
||||
{
|
||||
return m.base.hash_value();
|
||||
}
|
||||
}; // class template unordered_multiset
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
|
Reference in New Issue
Block a user