]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Refactor _Hashtable::operator=(initializer_list<value_type>)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Nov 2024 12:44:00 +0000 (12:44 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 Nov 2024 20:21:38 +0000 (20:21 +0000)
commit9fcbbb3d104717447cffb65f6ef000969a7b7bb4
tree0bddad63551fbbfad43e8613063d11f724257aa7
parent19d0720f68c2617f1b9b686d3884333b60ca75da
libstdc++: Refactor _Hashtable::operator=(initializer_list<value_type>)

This replaces a call to _M_insert_range with open coding the loop. This
will allow removing the node generator parameter from _M_insert_range in
a later commit.

libstdc++-v3/ChangeLog:

* include/bits/hashtable.h (operator=(initializer_list)):
Refactor to not use _M_insert_range.

Reviewed-by: François Dumont <fdumont@gcc.gnu.org>
libstdc++-v3/include/bits/hashtable.h