ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::static_bitmap< N > Class Template Referenceexport
module lib.bitmap

A fixed-capacity, SMP-aware bitmap. More...

Public Member Functions

auto all () const noexcept -> bool
auto any () const noexcept -> bool
auto clear (usize bit, std::memory_order order=std::memory_order::seq_cst) noexcept -> void
 Atomically clear a bit.
auto clear_relaxed (usize bit) noexcept -> void
 Non-atomic clear (caller holds exterior lock).
auto count () const noexcept -> usize
 Count set bits.
auto find_first_set () const noexcept -> std::optional< usize >
 Find first set bit.
auto find_first_unset () const noexcept -> std::optional< usize >
 Find first unset bit.
auto find_next_set (usize after) const noexcept -> std::optional< usize >
 Find first set bit strictly after after.
auto none () const noexcept -> bool
auto reset () noexcept -> void
 Clear the entire bitmap.
auto set (usize bit, std::memory_order order=std::memory_order::seq_cst) noexcept -> void
 Atomically set a bit.
auto set_relaxed (usize bit) noexcept -> void
 Non-atomic set (caller holds exterior lock).
auto test (usize bit, std::memory_order order=std::memory_order::relaxed) const noexcept -> bool
 Atomically test a bit.

Detailed Description

template<usize N>
class lib::static_bitmap< N >

A fixed-capacity, SMP-aware bitmap.

Template Parameters
NNumber of bits in the bitmap.
Note
Uses IBM MSB0 bit numbering (bit 0 is the MSB of the first word).

The documentation for this class was generated from the following file: