No need to create a node_constructor for every iteration.

[SVN r42158]
This commit is contained in:
Daniel James
2007-12-18 23:30:52 +00:00
parent 9cdf95ec53
commit 072a80a3f2

View File

@@ -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_);