MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xxfw9i/cppanditsvectorbooleans/19srdrnlnpbc5/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 10d ago
214 comments sorted by
View all comments
Show parent comment
5
It's even worse. C++ itself actually uses a whole byte for bools. It's only vector that uses bits to optimize when it's a vector of bools
View all comments
Show parent comment
5
u/Still_Bit_7527 9d ago
It's even worse. C++ itself actually uses a whole byte for bools. It's only vector that uses bits to optimize when it's a vector of bools