A helper for defining partial specializations of a hasher class that rely on other partial specializations of that hasher class being usable.

Synopsis

Declared in <folly/hash/traits.h>

template<
    typename T,
    template<typename U> typename Hasher,
    typename... Dependencies>
using enable_hasher_helper = /* implementation-defined */;

Description

Example: ` template <typename T> struct hash< folly::enable_std_hash_helper<folly::Optional<T>, remove_const_t<T>>> { size_t operator()(folly::Optional<T> const& obj) const { return static_cast<bool>(obj) ? hash<remove_const_t<T>>()(*obj) : 0; } }; `

Created with MrDocs