mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Use BOOST_DEDUCED_TYPENAME in unordered_set.hpp and unordered_map.hpp
[SVN r42207]
This commit is contained in:
@ -32,7 +32,7 @@ namespace boost
|
|||||||
std::pair<const Key, T>, Key, Hash, Pred, Alloc
|
std::pair<const Key, T>, Key, Hash, Pred, Alloc
|
||||||
> implementation;
|
> implementation;
|
||||||
|
|
||||||
typename implementation::hash_table base;
|
BOOST_DEDUCED_TYPENAME implementation::hash_table base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -45,18 +45,18 @@ namespace boost
|
|||||||
typedef Pred key_equal;
|
typedef Pred key_equal;
|
||||||
|
|
||||||
typedef Alloc allocator_type;
|
typedef Alloc allocator_type;
|
||||||
typedef typename allocator_type::pointer pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::pointer pointer;
|
||||||
typedef typename allocator_type::const_pointer const_pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_pointer const_pointer;
|
||||||
typedef typename allocator_type::reference reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::reference reference;
|
||||||
typedef typename allocator_type::const_reference const_reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_reference const_reference;
|
||||||
|
|
||||||
typedef typename implementation::size_type size_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::size_type size_type;
|
||||||
typedef typename implementation::difference_type difference_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::difference_type difference_type;
|
||||||
|
|
||||||
typedef typename implementation::iterator iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::iterator iterator;
|
||||||
typedef typename implementation::const_iterator const_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator const_iterator;
|
||||||
typedef typename implementation::local_iterator local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::local_iterator local_iterator;
|
||||||
typedef typename implementation::const_local_iterator const_local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator const_local_iterator;
|
||||||
|
|
||||||
// construct/destroy/copy
|
// construct/destroy/copy
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ namespace boost
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typename implementation::iterator_base const&
|
BOOST_DEDUCED_TYPENAME implementation::iterator_base const&
|
||||||
get(const_iterator const& it)
|
get(const_iterator const& it)
|
||||||
{
|
{
|
||||||
return boost::unordered_detail::iterator_access::get(it);
|
return boost::unordered_detail::iterator_access::get(it);
|
||||||
@ -345,7 +345,7 @@ namespace boost
|
|||||||
std::pair<const Key, T>, Key, Hash, Pred, Alloc
|
std::pair<const Key, T>, Key, Hash, Pred, Alloc
|
||||||
> implementation;
|
> implementation;
|
||||||
|
|
||||||
typename implementation::hash_table base;
|
BOOST_DEDUCED_TYPENAME implementation::hash_table base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -358,18 +358,18 @@ namespace boost
|
|||||||
typedef Pred key_equal;
|
typedef Pred key_equal;
|
||||||
|
|
||||||
typedef Alloc allocator_type;
|
typedef Alloc allocator_type;
|
||||||
typedef typename allocator_type::pointer pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::pointer pointer;
|
||||||
typedef typename allocator_type::const_pointer const_pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_pointer const_pointer;
|
||||||
typedef typename allocator_type::reference reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::reference reference;
|
||||||
typedef typename allocator_type::const_reference const_reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_reference const_reference;
|
||||||
|
|
||||||
typedef typename implementation::size_type size_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::size_type size_type;
|
||||||
typedef typename implementation::difference_type difference_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::difference_type difference_type;
|
||||||
|
|
||||||
typedef typename implementation::iterator iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::iterator iterator;
|
||||||
typedef typename implementation::const_iterator const_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator const_iterator;
|
||||||
typedef typename implementation::local_iterator local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::local_iterator local_iterator;
|
||||||
typedef typename implementation::const_local_iterator const_local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator const_local_iterator;
|
||||||
|
|
||||||
// construct/destroy/copy
|
// construct/destroy/copy
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ namespace boost
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typename implementation::iterator_base const&
|
BOOST_DEDUCED_TYPENAME implementation::iterator_base const&
|
||||||
get(const_iterator const& it)
|
get(const_iterator const& it)
|
||||||
{
|
{
|
||||||
return boost::unordered_detail::iterator_access::get(it);
|
return boost::unordered_detail::iterator_access::get(it);
|
||||||
|
@ -31,7 +31,7 @@ namespace boost
|
|||||||
Value, Value, Hash, Pred, Alloc
|
Value, Value, Hash, Pred, Alloc
|
||||||
> implementation;
|
> implementation;
|
||||||
|
|
||||||
typename implementation::hash_table base;
|
BOOST_DEDUCED_TYPENAME implementation::hash_table base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -43,18 +43,18 @@ namespace boost
|
|||||||
typedef Pred key_equal;
|
typedef Pred key_equal;
|
||||||
|
|
||||||
typedef Alloc allocator_type;
|
typedef Alloc allocator_type;
|
||||||
typedef typename allocator_type::pointer pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::pointer pointer;
|
||||||
typedef typename allocator_type::const_pointer const_pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_pointer const_pointer;
|
||||||
typedef typename allocator_type::reference reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::reference reference;
|
||||||
typedef typename allocator_type::const_reference const_reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_reference const_reference;
|
||||||
|
|
||||||
typedef typename implementation::size_type size_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::size_type size_type;
|
||||||
typedef typename implementation::difference_type difference_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::difference_type difference_type;
|
||||||
|
|
||||||
typedef typename implementation::const_iterator iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator iterator;
|
||||||
typedef typename implementation::const_iterator const_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator const_iterator;
|
||||||
typedef typename implementation::const_local_iterator local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator local_iterator;
|
||||||
typedef typename implementation::const_local_iterator const_local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator const_local_iterator;
|
||||||
|
|
||||||
// construct/destroy/copy
|
// construct/destroy/copy
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ namespace boost
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typename implementation::iterator_base const&
|
BOOST_DEDUCED_TYPENAME implementation::iterator_base const&
|
||||||
get(const_iterator const& it)
|
get(const_iterator const& it)
|
||||||
{
|
{
|
||||||
return boost::unordered_detail::iterator_access::get(it);
|
return boost::unordered_detail::iterator_access::get(it);
|
||||||
@ -314,7 +314,7 @@ namespace boost
|
|||||||
Value, Value, Hash, Pred, Alloc
|
Value, Value, Hash, Pred, Alloc
|
||||||
> implementation;
|
> implementation;
|
||||||
|
|
||||||
typename implementation::hash_table base;
|
BOOST_DEDUCED_TYPENAME implementation::hash_table base;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -326,18 +326,18 @@ namespace boost
|
|||||||
typedef Pred key_equal;
|
typedef Pred key_equal;
|
||||||
|
|
||||||
typedef Alloc allocator_type;
|
typedef Alloc allocator_type;
|
||||||
typedef typename allocator_type::pointer pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::pointer pointer;
|
||||||
typedef typename allocator_type::const_pointer const_pointer;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_pointer const_pointer;
|
||||||
typedef typename allocator_type::reference reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::reference reference;
|
||||||
typedef typename allocator_type::const_reference const_reference;
|
typedef BOOST_DEDUCED_TYPENAME allocator_type::const_reference const_reference;
|
||||||
|
|
||||||
typedef typename implementation::size_type size_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::size_type size_type;
|
||||||
typedef typename implementation::difference_type difference_type;
|
typedef BOOST_DEDUCED_TYPENAME implementation::difference_type difference_type;
|
||||||
|
|
||||||
typedef typename implementation::const_iterator iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator iterator;
|
||||||
typedef typename implementation::const_iterator const_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_iterator const_iterator;
|
||||||
typedef typename implementation::const_local_iterator local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator local_iterator;
|
||||||
typedef typename implementation::const_local_iterator const_local_iterator;
|
typedef BOOST_DEDUCED_TYPENAME implementation::const_local_iterator const_local_iterator;
|
||||||
|
|
||||||
// construct/destroy/copy
|
// construct/destroy/copy
|
||||||
|
|
||||||
@ -368,7 +368,7 @@ namespace boost
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typename implementation::iterator_base const&
|
BOOST_DEDUCED_TYPENAME implementation::iterator_base const&
|
||||||
get(const_iterator const& it)
|
get(const_iterator const& it)
|
||||||
{
|
{
|
||||||
return boost::unordered_detail::iterator_access::get(it);
|
return boost::unordered_detail::iterator_access::get(it);
|
||||||
|
Reference in New Issue
Block a user