Skip to content

Bit structures

Bit structures provide compact bit-level and integer-set storage.

See Type construction and operations for addressing, width/endian rules, return values, and the adaptive array/bitmap/run containers used by roaring_bitmap.

TypeConstructionPrincipal operations
bitmapCREATESET, GETBIT, COUNT
bit_fieldCREATESET, GET
bit_setCREATESET, GETBIT, COUNT
roaring_bitmapCREATEADD, REMOVE, CONTAINS, VALUES, CARDINALITY