Add hasher specializations for enums, pairs and tuples
authorAlexander Shaposhnikov <alexshap@fb.com>
Wed, 29 Jul 2015 03:35:46 +0000 (20:35 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 29 Jul 2015 04:22:15 +0000 (21:22 -0700)
commit879db739d6bb0cd6a7035d4606c34c877077c88e
tree9728c5f7c461810b7cf48b5aab7f6b75e8b7f855
parent408bb70871a0529517957c6c388062ad79bbd197
Add hasher specializations for enums, pairs and tuples

Summary: This diff adds partial specializations of folly::hasher for enum types, std::pair and std::tuple.
We also restrict the specialization for folly::Range to POD value types.

Reviewed By: @ot, @ddrcoder

Differential Revision: D2285554
folly/Hash.h
folly/Range.h
folly/test/HashTest.cpp