|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2007-12-18 18:30:53
Author: danieljames
Date: 2007-12-18 18:30:52 EST (Tue, 18 Dec 2007)
New Revision: 42158
URL: http://svn.boost.org/trac/boost/changeset/42158
Log:
No need to create a node_constructor for every iteration.
Text files modified:
sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp (original)
+++ sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp 2007-12-18 18:30:52 EST (Tue, 18 Dec 2007)
@@ -1561,9 +1561,9 @@
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_);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk