Add hash and equal_to implementations to folly::Uri
authorAndreas C. Osowski <anc@fb.com>
Fri, 17 Mar 2017 00:35:15 +0000 (17:35 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Mar 2017 00:40:13 +0000 (17:40 -0700)
commitcb969f7ac49162965bdcbfadd2b2d4b8ce71a7c4
treec69847e396fdcb747849754dc3229b0ff6e5ebb3
parentebebe68b72029bd6321dabf986baa18b206328c1
Add hash and equal_to implementations to folly::Uri

Summary:
Adds a default inline implementation for `std::hash` and `std::equal_to` to `folly::Uri`.
Both do the comparison / hash based upon the return value of `folly::Uri::toString`.

Reviewed By: yfeldblum

Differential Revision: D4711506

fbshipit-source-id: f4c2a9de8d4302fd315a9f31329cc8ba9f5e0409
folly/Uri-inl.h