Commit 27ab332b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut unnecessary uses of Super:: in F14Policy.h

Summary: [Folly] Cut unnecessary uses of `Super::` in `F14Policy.h`.

Reviewed By: shixiao

Differential Revision: D9478746

fbshipit-source-id: ea5b57a66e265ea459a66ff3756a2a54326e73f2
parent 56fae0e5
......@@ -466,11 +466,10 @@ class ValueContainerPolicy : public BasePolicy<
using Super::kIsMap;
public:
using ConstIter =
ValueContainerIterator<typename Super::AllocTraits::const_pointer>;
using ConstIter = ValueContainerIterator<typename AllocTraits::const_pointer>;
using Iter = std::conditional_t<
kIsMap,
ValueContainerIterator<typename Super::AllocTraits::pointer>,
ValueContainerIterator<typename AllocTraits::pointer>,
ConstIter>;
//////// F14Table policy
......@@ -718,11 +717,10 @@ class NodeContainerPolicy
using Super::kIsMap;
public:
using ConstIter =
NodeContainerIterator<typename Super::AllocTraits::const_pointer>;
using ConstIter = NodeContainerIterator<typename AllocTraits::const_pointer>;
using Iter = std::conditional_t<
kIsMap,
NodeContainerIterator<typename Super::AllocTraits::pointer>,
NodeContainerIterator<typename AllocTraits::pointer>,
ConstIter>;
//////// F14Table policy
......@@ -966,18 +964,16 @@ class VectorContainerPolicy : public BasePolicy<
using InternalSizeType = Item;
using ConstIter =
VectorContainerIterator<typename Super::AllocTraits::const_pointer>;
VectorContainerIterator<typename AllocTraits::const_pointer>;
using Iter = std::conditional_t<
kIsMap,
VectorContainerIterator<typename Super::AllocTraits::pointer>,
VectorContainerIterator<typename AllocTraits::pointer>,
ConstIter>;
using ConstReverseIter = typename Super::AllocTraits::const_pointer;
using ReverseIter = std::conditional_t<
kIsMap,
typename Super::AllocTraits::pointer,
ConstReverseIter>;
using ConstReverseIter = typename AllocTraits::const_pointer;
using ReverseIter = std::
conditional_t<kIsMap, typename AllocTraits::pointer, ConstReverseIter>;
using ValuePtr = typename Super::AllocTraits::pointer;
using ValuePtr = typename AllocTraits::pointer;
//////// F14Table policy
......@@ -1071,8 +1067,7 @@ class VectorContainerPolicy : public BasePolicy<
template <typename K>
std::size_t computeKeyHash(K const& key) const {
static_assert(
Super::isAvalanchingHasher() ==
IsAvalanchingHasher<typename Super::Hasher, K>::value,
Super::isAvalanchingHasher() == IsAvalanchingHasher<Hasher, K>::value,
"");
return this->hasher()(key);
}
......
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