summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/debug/bitset
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-02 21:11:19 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-02 21:11:19 +0000
commit445a8f884ca8553bae75677584d8518773de59c6 (patch)
tree5e48d10195e6a0bccc697e1485ec1558a6910b5f /libstdc++-v3/include/debug/bitset
parent5647a5210b52fb617d3056508788d39619368c64 (diff)
downloadppe42-gcc-445a8f884ca8553bae75677584d8518773de59c6.tar.gz
ppe42-gcc-445a8f884ca8553bae75677584d8518773de59c6.zip
2010-03-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>): Add. * include/debug/vector (hash<__debug::vector<bool, _Alloc>>): Likewise. * include/profile/vector (hash<__profile::vector<bool, _Alloc>>): Likewise. * testsuite/23_containers/vector/bool/hash/1.cc: New. * include/std/bitset (hash<bitset<_Nb>>): Small tweaks. (hash<bitset<0>>): Add. * include/debug/bitset (hash<__debug::bitset<_Nb>>): Forward to hash<bitset<_Nb>>. * include/profile/bitset (hash<__profile::bitset<_Nb>>): Likewise. * testsuite/23_containers/bitset/hash/1.cc: Improve. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157176 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug/bitset')
-rw-r--r--libstdc++-v3/include/debug/bitset5
1 files changed, 1 insertions, 4 deletions
diff --git a/libstdc++-v3/include/debug/bitset b/libstdc++-v3/include/debug/bitset
index d611892e680..034505d2c89 100644
--- a/libstdc++-v3/include/debug/bitset
+++ b/libstdc++-v3/include/debug/bitset
@@ -389,10 +389,7 @@ namespace __debug
{
size_t
operator()(const std::__debug::bitset<_Nb>& __b) const
- {
- const size_t __size = (_Nb + __CHAR_BIT__ - 1) / __CHAR_BIT__;
- return std::_Fnv_hash::hash(__b._M_base()._M_getdata(), __size);
- }
+ { return std::hash<_GLIBCXX_STD_D::bitset<_Nb>>()(__b._M_base()); }
};
#endif
OpenPOWER on IntegriCloud