Commit 03d7aff6 by Paolo Carlini Committed by Paolo Carlini

re PR libstdc++/57065 (incorrect default allocator template for debug and profile unordered_map)

2013-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/57065
	* include/debug/unordered_map (unordered_map, unordered_multimap):
	Fix default allocator type.
	* include/profile/unordered_map (unordered_map, unordered_multimap):
	Likewise.
	* include/bits/unordered_map.h: Fix comments.

From-SVN: r198279
parent 1ef395e4
2013-04-25 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57065
* include/debug/unordered_map (unordered_map, unordered_multimap):
Fix default allocator type.
* include/profile/unordered_map (unordered_map, unordered_multimap):
Likewise.
* include/bits/unordered_map.h: Fix comments.
2013-04-24 Jonathan Wakely <jwakely.gcc@gmail.com> 2013-04-24 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/56905 PR libstdc++/56905
......
...@@ -80,7 +80,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -80,7 +80,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @tparam _Hash Hashing function object type, defaults to hash<_Value>. * @tparam _Hash Hashing function object type, defaults to hash<_Value>.
* @tparam _Pred Predicate function object type, defaults * @tparam _Pred Predicate function object type, defaults
* to equal_to<_Value>. * to equal_to<_Value>.
* @tparam _Alloc Allocator type, defaults to allocator<_Key>. * @tparam _Alloc Allocator type, defaults to
* std::allocator<std::pair<const _Key, _Tp>>.
* *
* Meets the requirements of a <a href="tables.html#65">container</a>, and * Meets the requirements of a <a href="tables.html#65">container</a>, and
* <a href="tables.html#xx">unordered associative container</a> * <a href="tables.html#xx">unordered associative container</a>
...@@ -791,7 +792,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -791,7 +792,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @tparam _Hash Hashing function object type, defaults to hash<_Value>. * @tparam _Hash Hashing function object type, defaults to hash<_Value>.
* @tparam _Pred Predicate function object type, defaults * @tparam _Pred Predicate function object type, defaults
* to equal_to<_Value>. * to equal_to<_Value>.
* @tparam _Alloc Allocator type, defaults to allocator<_Key>. * @tparam _Alloc Allocator type, defaults to
* std::allocator<std::pair<const _Key, _Tp>>.
* *
* Meets the requirements of a <a href="tables.html#65">container</a>, and * Meets the requirements of a <a href="tables.html#65">container</a>, and
* <a href="tables.html#xx">unordered associative container</a> * <a href="tables.html#xx">unordered associative container</a>
......
...@@ -46,7 +46,7 @@ namespace __debug ...@@ -46,7 +46,7 @@ namespace __debug
template<typename _Key, typename _Tp, template<typename _Key, typename _Tp,
typename _Hash = std::hash<_Key>, typename _Hash = std::hash<_Key>,
typename _Pred = std::equal_to<_Key>, typename _Pred = std::equal_to<_Key>,
typename _Alloc = std::allocator<_Key> > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
class unordered_map class unordered_map
: public _GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>, : public _GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>,
public __gnu_debug::_Safe_unordered_container<unordered_map<_Key, _Tp, public __gnu_debug::_Safe_unordered_container<unordered_map<_Key, _Tp,
...@@ -500,7 +500,7 @@ namespace __debug ...@@ -500,7 +500,7 @@ namespace __debug
template<typename _Key, typename _Tp, template<typename _Key, typename _Tp,
typename _Hash = std::hash<_Key>, typename _Hash = std::hash<_Key>,
typename _Pred = std::equal_to<_Key>, typename _Pred = std::equal_to<_Key>,
typename _Alloc = std::allocator<_Key> > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
class unordered_multimap class unordered_multimap
: public _GLIBCXX_STD_C::unordered_multimap<_Key, _Tp, _Hash, : public _GLIBCXX_STD_C::unordered_multimap<_Key, _Tp, _Hash,
_Pred, _Alloc>, _Pred, _Alloc>,
......
...@@ -46,7 +46,7 @@ namespace __profile ...@@ -46,7 +46,7 @@ namespace __profile
template<typename _Key, typename _Tp, template<typename _Key, typename _Tp,
typename _Hash = std::hash<_Key>, typename _Hash = std::hash<_Key>,
typename _Pred = std::equal_to<_Key>, typename _Pred = std::equal_to<_Key>,
typename _Alloc = std::allocator<_Key> > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
class unordered_map class unordered_map
: public _GLIBCXX_STD_BASE : public _GLIBCXX_STD_BASE
{ {
...@@ -348,7 +348,7 @@ namespace __profile ...@@ -348,7 +348,7 @@ namespace __profile
template<typename _Key, typename _Tp, template<typename _Key, typename _Tp,
typename _Hash = std::hash<_Key>, typename _Hash = std::hash<_Key>,
typename _Pred = std::equal_to<_Key>, typename _Pred = std::equal_to<_Key>,
typename _Alloc = std::allocator<_Key> > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
class unordered_multimap class unordered_multimap
: public _GLIBCXX_STD_BASE : public _GLIBCXX_STD_BASE
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment