]> git.ipfire.org Git - thirdparty/gcc.git/commit
2010-08-31 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Aug 2010 17:39:51 +0000 (17:39 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Aug 2010 17:39:51 +0000 (17:39 +0000)
commitc61794d6be23943b09b6ab2b98d723c75ab5ffcb
treeabf771e125f7ff3903e8b48ccac872d9b91c645d
parentbab5ca7967b7b6840ae8094afd271e4459f41d68
2010-08-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/44480
* include/bits/hashtable.h (_Hashtable<>::_M_begin_bucket_index):
Add, caching the index of the first non-empty bucket.
(begin, cbegin): Use it.
(_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, ...),
_Hashtable(const _Hashtable&), _Hashtable(_Hashtable&&),
swap(_Hashtable&), clear): Adjust.
(_M_insert_bucket, _M_insert, erase(const_iterator),
erase(const key_type&), _M_rehash): Update it.

* include/bits/hashtable.h (_Hashtable<>::_M_erase): Remove.
(erase(const_iterator)): Inline the latter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163686 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h