Commit 8579ad47 authored by Xiao Shi's avatar Xiao Shi Committed by Facebook Github Bot

expose Default{Hasher, KeyEqual, Alloc} to platforms without intrinsics available

Summary: Expose Default{Hasher, KeyEqual, Alloc} to platforms without intrinsics available

Reviewed By: yfeldblum

Differential Revision: D7277896

fbshipit-source-id: 92f46aef9ab0926c32c85e29e368f7c0b58c2b3e
parent 9cf96558
......@@ -101,6 +101,17 @@ struct F14TableStats {
}
};
namespace f14 {
template <typename T>
using DefaultHasher = std::hash<T>;
template <typename T>
using DefaultKeyEqual = std::equal_to<T>;
template <typename T>
using DefaultAlloc = std::allocator<T>;
} // namespace f14
#if FOLLY_F14_VECTOR_INTRINSICS_AVAILABLE
namespace f14 {
namespace detail {
......@@ -125,18 +136,7 @@ class F14HashToken final {
};
namespace f14 {
template <typename T>
using DefaultHasher = std::hash<T>;
template <typename T>
using DefaultKeyEqual = std::equal_to<T>;
template <typename T>
using DefaultAlloc = std::allocator<T>;
namespace detail {
//// Defaults should be selected using void
template <typename Arg, typename Default>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment