Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct hash<std::string>

boost::hash<std::string>

Synopsis

// In header: <boost/container_hash/hash.hpp>


struct hash<std::string> {
  std::size_t operator()(std::string const&) const;
};

Description

std::size_t operator()(std::string const& val) const;

Returns:

Unspecified in TR1, except that equal arguments yield the same result.

hash_value(val) in Boost.

Throws:

Doesn't throw


PrevUpHomeNext