Add hash function to URL

This commit is contained in:
Vinnie Falco
2013-10-25 15:36:24 -07:00
parent dc591f8943
commit 7bae496257
2 changed files with 39 additions and 1 deletions

View File

@@ -25,7 +25,6 @@ URL::URL ()
: m_port (0)
{
}
URL::URL (
String scheme_,
String host_,
@@ -154,5 +153,14 @@ String URL::full () const
return s;
}
//------------------------------------------------------------------------------
std::size_t hash_value (URL const& v)
{
return std::size_t (v.full().hash());
}
}
// boost::hash support