26 template <
typename BucketT>
30 : fn_(
std::
move(fn)), curHead_(0) {
32 for (
size_t i = 0;
i < numBuckets; ++
i) {
38 template <
typename BucketT>
44 template <
typename BucketT>
46 std::vector<BucketT> buckets;
53 template <
typename BucketT>
58 template <
typename BucketT>
66 template <
typename BucketT>
69 for (
size_t i = 0;
i < nBuckets; ++
i) {
SlidingWindow(Function< BucketT(void)> fn, size_t numBuckets)
std::vector< BucketT > buckets_
constexpr detail::Map< Move > move
Function< BucketT(void)> fn_
—— Concurrent Priority Queue Implementation ——
FOLLY_PUSH_WARNING RHS rhs
void set(size_t idx, BucketT bucket)
void slide(size_t nBuckets)
std::vector< BucketT > get() const