folly::ConcurrentBSkipList::count

count overloads

Synopses

Declared in <folly/ConcurrentBSkipList.h>

Counts the live entries for the key.

size_t
count(T const& key) const;
» more...

Counts the live entries matching a transparent key.

template<
    typename LookupKey,
    typename C = Comp,
    typename = C::is_transparent>
size_t
count(LookupKey const& key) const;
» more...

Return Value

  • 1 if the key is present, 0 otherwise.
  • 1 if a matching key is present, 0 otherwise.

Template Parameters

NameDescription
LookupKeyThe heterogeneous lookup key type.

Parameters

NameDescription
keyThe key to count.