add folly:hasher<bool>
authorDen Raskovalov <denplusplus@fb.com>
Thu, 9 Feb 2017 20:00:33 +0000 (12:00 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Feb 2017 20:08:20 +0000 (12:08 -0800)
commit3751f5de62022e0833496c18bdb757a81d0ed3ab
tree0446d3ca8ff0b21735e4cc706ac813dd6e9a5b68
parent53367378d6e5455dfbc649b325cfa583c54227ac
add folly:hasher<bool>

Summary:
hasher<bool> is a trivial thing, but it is useful, if we implement a hash function for a class by writing something like:
  return folly::Hash()(boolField1_, boolField2_, intField3_, boolField4_, someField5_)

Reviewed By: ot

Differential Revision: D4535563

fbshipit-source-id: 5e6672c2eeaebbbac80a8a066a6a0ec4838810f4
folly/Hash.h
folly/test/HashTest.cpp