Specialise std::hash for folly::Optional
authorSebastian Messmer <messmer@fb.com>
Wed, 8 Feb 2017 19:41:13 +0000 (11:41 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Feb 2017 19:50:22 +0000 (11:50 -0800)
commitc141f6ec365fcf87af33f7de9ad66d62520729c1
tree5edcabc745e0c134acd55ab6b0de1bee3a4ac27f
parentbcbc4ff50e1949a01a102faf90f33b4f5dbe3263
Specialise std::hash for folly::Optional

Summary: This allows using folly::Optional<T> in std::unordered_map and std::unordered_set.

Reviewed By: luciang

Differential Revision: D4469938

fbshipit-source-id: b86b1a4510379b337e9de83471a4aafce6d5a6cb
folly/Optional.h
folly/test/OptionalTest.cpp