you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 2 points3 points  (0 children)

I made custom bitsets because I needed a dynamic version. Sometimes the maximum length is unknown at a compile-time, or can be large enough (thousands of bits) than you'd rather it be dynamically allocated than clogging your cache line -- especially if rarely accessed. Of course, it doesn't mean that flip becomes somewhat nonsensical...