nxt.bitarray_algorithm

Algorithms for dynamic and static bitarrays based with integral blocks.

Algorithms are qualified as package because they should only be used by bit-array containers.

Members

Functions

countOnes
size_t countOnes(Blocks blocks, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
indexOfFirstOne
size_t indexOfFirstOne(Blocks blocks, size_t length)

Find index of first set (one) bit or length if no bit cleared.

indexOfFirstZero
size_t indexOfFirstZero(Blocks blocks, size_t length)

Find index of first cleared (zero) bit or length if no bit cleared.

Meta