Respect pointer_traits on node deallocation in _ReuseOrAllocNode parenthesis operator.
authorFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 23 Dec 2018 18:05:23 +0000 (18:05 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 23 Dec 2018 18:05:23 +0000 (18:05 +0000)
commit23d5fd6cd6b48b64826f001c55c5591eedab152c
treecb3f5cc2f151a947c76cb0820e9556446f2cbee2
parent18246c420fd53a12be68b4ddfcfebf1e80056435
Respect pointer_traits on node deallocation in _ReuseOrAllocNode parenthesis operator.

2018-12-23  François Dumont  <fdumont@gcc.gnu.org>

Respect pointer_traits on node deallocation in _ReuseOrAllocNode
parenthesis operator.

* include/bits/hashtable_policy.h
(_Hashtable_alloc<>::_M_deallocate_node_ptr(__node_type*)): New.
(_Hashtable_alloc<>::_M_deallocate_node(__node_type*)): Use latter.
(_ReuseOrAllocNode<>::operator<_Arg>()(_Arg&&)): Likewise.

From-SVN: r267380
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h