Simplify allocator usage in unordered containers
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Aug 2017 18:20:43 +0000 (19:20 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 18 Aug 2017 18:20:43 +0000 (19:20 +0100)
commitb74f0db11a4e62e044b816c5d275df37ee728396
treedec6b13dd44f54c12b79f3d530854f5703c4f009
parentf661e57ee8fef0b121ec2d79f9e5fea20932c2ae
Simplify allocator usage in unordered containers

* include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
__value_alloc_type and __value_alloc_traits typedefs.
(_ReuseOrAllocNode::operator()): Call construct and destroy on the
node allocator.
(_Hashtable_alloc): Simplify __value_alloc_traits typedef.
(_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
construct on the node allocator.
(_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
destroy on the node allocator.

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