ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib.bitmap Module Reference

Data Structures

class  lib::static_bitmap< N >
 A fixed-capacity, SMP-aware bitmap. More...

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.

Files

file  lib/bitmap.cxxm
 Fixed-capacity SMP-safe bitmap using std::atomic.