
Le mercredi 03 septembre 2025 à 23:36 +0300, Andrey Semashev via Boost a écrit :
On 3 Sep 2025 23:17, Vinnie Falco wrote:
What do you call the bitset whose size can change yet the capacity of the bitset is fixed at compile time?
Following Boost.Container convention, that would be static_dynamic_bitset, but that sounds silly, so static_bitset.
That would be consistent with boost::static_string. As noted by others, a fixed-size bitset already existed for ages, i don't think there's a need for one in boost, unless it has some extra features.
Or is that not a use-case typically desired? (i.e. boost::static_string is that container for strings).
It would probably offer a some size advantage over small_bitset. Specifically, it wouldn't have to track capacity and pointer to storage.
+1 For the obvious changes / improvements for any bitset, changing the constructor from std::string to string_view instead is a good starter. Regards, Julien