This non-modifying function returns the number of intersecting elements between two bitsets a and b. This should be faster than writing a$copy()$and(b)$size() as it avoids the memory allocations of $copy().

bitset_count_and(a, b)

Arguments

a

a Bitset

b

another Bitset