mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 11:57:15 +02:00
No need to create a node_constructor for every iteration.
[SVN r42158]
This commit is contained in:
@@ -1561,9 +1561,9 @@ namespace boost {
|
||||
else {
|
||||
// Only require basic exception safety here
|
||||
reserve_extra(size() + distance);
|
||||
node_constructor a(this->allocators_);
|
||||
|
||||
for (; i != j; ++i) {
|
||||
node_constructor a(this->allocators_);
|
||||
a.construct(*i);
|
||||
|
||||
key_type const& k = extract_key(a.get()->value_);
|
||||
|
Reference in New Issue
Block a user