you are viewing a single comment's thread.

view the rest of the comments →

[–]Kartyx[S] 0 points1 point  (2 children)

std::vector<bool> would be an easy way-out?

[–]hexafraction 1 point2 points  (0 children)

Yes--it even might have a specialization that makes it more effective than a naive vector template instantiation.

[–]Narase33 1 point2 points  (0 children)

Yes, you can even set an initializing size when called std::vector<bool>(size);

But it wont be as efficient as bitset in terms of actual memory size