
On 9/3/2025 9:15 PM, Jean-Louis Leroy wrote:
Hi Gennaro,
I use DynamicBitset in several places in OpenMethod. Thanks for creating it!
Hi Jean-Louis, the library was originally created by Jeremy Siek. But it looked very different from now. I re-implemented it completely, added features, etc.
I remember missing two features.
1. Iterators. There was a PR from a user for that (https://github.com/boostorg/dynamic_bitset/pull/73), but I reckon that it was a little naive.
DynamicBitset doesn't provide iterators, and doesn't pretend to be a container, because of the proxy reference type, which prevents iterators to satisfy the standard requirements. IOW, even if it provided iterators, they wouldn't be usable with the standard algorithms.
2. A function similar to find_first, but for locating the first "off" bit.
Hmm... I'll implement that. Thanks for the suggestion :-). -- Gennaro Prota <https://prota.dev>