2013-07-05 François Dumont <fdumont@gcc.gnu.org>
commitbdfe15969bb5e542c53d013a8af1eeace0735a08
authorfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jul 2013 21:21:07 +0000 (5 21:21 +0000)
committerfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jul 2013 21:21:07 +0000 (5 21:21 +0000)
tree2c8131d6719d93f9ea17d9101511b18ff4766f65
parent1f3a048aa0221dc35cc6a5abe55aa692e372a12a
2013-07-05  François Dumont  <fdumont@gcc.gnu.org>

* include/bits/hashtable_policy.h (_ReuseOrAllocNode): Use forward
pattern.
(_MoveReuseOrAllocNode): Remove.
(_Insert_base): Take a functor defining how the node is generated.
* include/bits/hashtable.h: Adapt.
(operator=(initializer_list<value_type>)): Reuse node if any.
* testsuite/23_containers/unordered_set/instantiation_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/unordered_set/
not_default_constructible_hash_neg.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200724 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_set/not_default_constructible_hash_neg.cc