diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-03 10:57:46 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-03 10:57:46 +0000 |
commit | 159b58ddeefa62da79bd458d8d606509b37a7d7b (patch) | |
tree | 30c34b02b14ff9991fdc56cb67585061e9dff779 /libstdc++-v3/include/profile | |
parent | 578512b16c7b69545b35e7547f28d7deeaf798f5 (diff) | |
download | gcc-159b58ddeefa62da79bd458d8d606509b37a7d7b.tar.gz |
2012-01-03 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 182833 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@182834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/profile')
-rw-r--r-- | libstdc++-v3/include/profile/unordered_map | 12 | ||||
-rw-r--r-- | libstdc++-v3/include/profile/unordered_set | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/libstdc++-v3/include/profile/unordered_map b/libstdc++-v3/include/profile/unordered_map index 3688d549f65..1d0f0d53064 100644 --- a/libstdc++-v3/include/profile/unordered_map +++ b/libstdc++-v3/include/profile/unordered_map @@ -308,9 +308,9 @@ namespace __profile while (__it != this->end()) { size_type __bkt = this->bucket(__it->first); - for (++__it; __it != this->end() - && this->bucket(__it->first) == __bkt; - ++__it) + auto __lit = this->begin(__bkt); + auto __lend = this->end(__bkt); + for (++__it, ++__lit; __lit != __lend; ++__it, ++__lit) ++__chain; if (__chain) { @@ -577,9 +577,9 @@ namespace __profile while (__it != this->end()) { size_type __bkt = this->bucket(__it->first); - for (++__it; __it != this->end() - && this->bucket(__it->first) == __bkt; - ++__it) + auto __lit = this->begin(__bkt); + auto __lend = this->end(__bkt); + for (++__it, ++__lit; __lit != __lend; ++__it, ++__lit) ++__chain; if (__chain) { diff --git a/libstdc++-v3/include/profile/unordered_set b/libstdc++-v3/include/profile/unordered_set index 55177b33559..7bb10dc45c0 100644 --- a/libstdc++-v3/include/profile/unordered_set +++ b/libstdc++-v3/include/profile/unordered_set @@ -277,10 +277,10 @@ namespace __profile while (__it != this->end()) { size_type __bkt = this->bucket(*__it); - for (++__it; __it != this->end() && this->bucket(*__it) == __bkt; - ++__it) + auto __lit = this->begin(__bkt); + auto __lend = this->end(__bkt); + for (++__it, ++__lit; __lit != __lend; ++__it, ++__lit) ++__chain; - if (__chain) { ++__chain; @@ -539,10 +539,10 @@ namespace __profile while (__it != this->end()) { size_type __bkt = this->bucket(*__it); - for (++__it; __it != this->end() && this->bucket(*__it) == __bkt; - ++__it) + auto __lit = this->begin(__bkt); + auto __lend = this->end(__bkt); + for (++__it, ++__lit; __lit != __lend; ++__it, ++__lit) ++__chain; - if (__chain) { ++__chain; |