std::size_t hash_value(const Wt::WModelIndex& index) { boost::hash<int> intHasher; boost::hash< ::uint64_t > longHasher; return intHasher(index.row()) + intHasher(index.column()) + longHasher(index.internalId()); }
MONGO_HASH_NAMESPACE_START size_t hash<mongo::HostAndPort>::operator()(const mongo::HostAndPort& host) const { hash<int> intHasher; size_t hash = intHasher(host.port()); boost::hash_combine(hash, host.host()); return hash; }