
On 3 Sep 2025 22:51, Vinnie Falco wrote:
On Wed, Sep 3, 2025 at 10:25 AM Andrey Semashev via Boost <boost@lists.boost.org <mailto:boost@lists.boost.org>> 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.
Should this be the same type dynamic_bitset, or perhaps different types such as static_bitset or fixed_bitset?
Making it the same type would be a breaking change, so a separate type would be the easiest. They could share internal implementation, apart from storage management. And to be clear, small_dynamic_bitset seems like the proper name, as it would use the embedded storage up to the user-specified limit and allocate dynamic storage beyond that. We already have the full static bitset under the name of std::bitset.