• Nathan Bronson's avatar
    IsAvalanchingHasher improvements and fixes · fb02412a
    Nathan Bronson authored
    Summary:
    Specializing folly::IsAvalanchingHasher can be bulky and
    mistake-prone, such as constructing a new hash functor by subclassing.
    For example, folly::IsAvalanchingHasher<folly::transparent<H>, K>
    was incorrectly false even when H is avalanching.  This diff adds the
    ability to use a member type is_avalanching to accomplish the same
    effect, and also fixes the computation of folly::IsAvalanchingHasher
    for folly::transparent.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D8772423
    
    fbshipit-source-id: 49e4e33b2981efd8c302d9a217dc9df0dcb290cc
    fb02412a
Hash.h 20.4 KB