
4 Sep
2025
4 Sep
'25
9:40 a.m.
On 9/3/2025 7:23 PM, Andrey Semashev via Boost wrote: [...]
One thing I didn't see in dynamic_bitset when I was considering alternatives was the ability to allocate a fixed embedded storage, a-la small_vector. Bitsets are often small, so it makes sense to offer this feature.
One way to provide this is to allow passing an "allocator or container" template argument. That would allow using boost::container::small_vector as the underlying block container. However, dynamic_bitset needs a container that has reserve() and capacity(), so there are not many containers that could be actually used. -- Gennaro Prota <https://prota.dev>