]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: [_Hashtable] Use RAII type to guard node while constructing value
authorFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 30 Oct 2023 05:39:00 +0000 (06:39 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Thu, 9 Nov 2023 05:24:31 +0000 (06:24 +0100)
commit04d8a47608dcae7f61805e3566e3a1571b574405
treef44e83fe488169fc683ea37795f914cfc0dc69ec
parent5b6f4e6f05d5ef64ecb918db02f5b8149cb2b0a0
libstdc++: [_Hashtable] Use RAII type to guard node while constructing value

libstdc++-v3/ChangeLog:

* include/bits/hashtable_policy.h
(struct _NodePtrGuard<_HashtableAlloc, _NodePtr>): New.
(_ReuseAllocNode::operator()(_Args&&...)): Use latter to guard allocated node
pointer while constructing in place the value_type instance.
libstdc++-v3/include/bits/hashtable_policy.h