data.bitarray


template <
    auto Size,
    auto WordWidth,
    template <typename, auto> typename Memory = memory
    >
class bitarray §source

A fixed sized array of bits, stored internally as a memory of words. Provides methods to read or write at bit and word granularity.

Parameters

  • auto Size
    

    Number of bits in the bit vector.

  • auto WordWidth
    

    Number of bits in each word.

  • template <typename, auto> typename Memory = memory
    

    Memory implementation.

Aliases

  • using bit_addr_t = index_t<Size> §source
    

    Represents the address of a single bit.

  • using word_addr_t = index_t<bitarray::WordCount> §source
    

    Represents the address of a single word.

  • using word_t = uint<WordWidth> §source
    

    A single word which can be read or written.

Methods

General

  • (0 == (Size % WordWidth))