Hash specialization for folly::indirect.

Synopsis

Declared in <folly/Indirect.h>

template<
    typename T,
    typename Alloc>
requires requires(const T& t) { std::hash<T>{}(t); }
struct hash<folly::indirect<T, Alloc>>;

Description

Enabled only when hash<T> is enabled. Not guaranteed noexcept per spec.

Member Functions

Name

Description

operator()

Hashes a wrapper by its owned value.

Created with MrDocs