]> git.ipfire.org Git - thirdparty/gcc.git/commit
functional (tr1_hashtable_define_trivial_hash): Make hash<T>::operator() a const...
authorMatt Austern <austern@gmail.com>
Sat, 19 Feb 2005 23:57:23 +0000 (23:57 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Sat, 19 Feb 2005 23:57:23 +0000 (23:57 +0000)
commit6bbd10c78408f9fcb275e0c679b68e3066a53afd
tree90f48cdddc22353dd11ce9358af399d723af5643
parent72aff31a37fc3f58d9c2165bee672083a57cda86
functional (tr1_hashtable_define_trivial_hash): Make hash<T>::operator() a const member function for T a fundamental type

* include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
hash<T>::operator() a const member function for T a fundamental type
* include/tr1/hashtable (extract1st::operator()): Declare const.
(hash_code_base): Declare all member functions const
(hashtable::find): fix call to this->bucket_count()
(hashtable::count): Likewise.
(hashtable::equal_range): m_incr_bucket applies to iterator, not node.
* testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.

From-SVN: r95293
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/functional
libstdc++-v3/include/tr1/hashtable
libstdc++-v3/testsuite/tr1/6_containers/unordered/find/map1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/find/multimap1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/find/multiset1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/find/set1.cc [new file with mode: 0644]