r/ProgrammerHumor • • 10d ago

Meme cppAndItsVectorBooleans

Post image
3.4k Upvotes

214 comments sorted by

View all comments

Show parent comment

18

u/tiajuanat 10d ago

Bitset is fixed size. Vector<bool> is dynamic, does not allow concurrent access and does not guarantee continuity of values in memory.

Vector<bool> was meant to be an example template specialization, which is why it's so funky.

1

u/AL_O0 10d ago

thank you, that does make more sense