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