Simplify allocator usage in unordered containers
commit8bfbefefde7ed603fc272a8207b7acb250dfb719
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2017 18:20:43 +0000 (18 18:20 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2017 18:20:43 +0000 (18 18:20 +0000)
treedec6b13dd44f54c12b79f3d530854f5703c4f009
parent55058771df400b88e0428d6f56df854c47a1d97f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251187 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h