folly::ConcurrentBSkipDefaultPolicy

The default configuration policy for ConcurrentBSkipList.

Synopsis

Declared in <folly/ConcurrentBSkipList.h>

template<
    typename T,
    typename PromotionHash = std::hash<T>,
    typename Compare = std::less<T>,
    typename Allocator = std::allocator<char>>
struct ConcurrentBSkipDefaultPolicy;

Description

It bundles the hash, comparator, allocator, and the promotion, height, and storage constants that the container and its aliases forward into their per-axis template parameters.

Type Aliases

NameDescription
Comp The comparator used to order keys.
Hash The hash used for deterministic height assignment.
NodeAlloc The allocator used for nodes.

Static Data Members

NameDescription
kLeafSlots The per-leaf key capacity.
kMaxHeight The maximum number of levels in the structure.
kPromotionProbInverse The inverse promotion probability (a power of two greater than one).
kReadPolicy The policy controlling how keys are read during scans.
kStoragePolicy The policy controlling how leaf payloads are stored.

Template Parameters

NameDescription
TThe key type the policy configures.
PromotionHashThe hash used for deterministic height assignment.
CompareThe comparator used to order keys.
AllocatorThe allocator used for nodes.