]> git.ipfire.org Git - thirdparty/gcc.git/commit
hashtable_policy.h (_ReuseOrAllocNode): Use forward pattern.
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 5 Jul 2013 21:21:07 +0000 (21:21 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 5 Jul 2013 21:21:07 +0000 (21:21 +0000)
commitb3abc9d82253e6ecf097d703bd069f0054b22f53
tree2c8131d6719d93f9ea17d9101511b18ff4766f65
parent2b778c9d57e0eb58d99023e2445b02e0c0be4d7c
hashtable_policy.h (_ReuseOrAllocNode): Use forward pattern.

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.

From-SVN: r200724
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