std::hash

std::hash (std::bitset)

template<size_t N> struct hash<bitset<N>>;
(since C++11)

The template specialization of std::hash for std::bitset<N> allows users to obtain hashes of objects of type std::bitset<N>.

Example