Programming/Note

std::vector<bool>

dododoo 2020. 1. 19. 12:55

https://stackoverflow.com/questions/17794569/why-is-vectorbool-not-a-stl-container

 

Why is vector not a STL container?

Item 18 of Scott Meyers's book Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library says to avoid vector as it's not an STL container and it doesn't rea...

stackoverflow.com

https://stackoverflow.com/questions/16738579/is-using-a-vector-of-boolean-values-slower-than-a-dynamic-bitset

 

Is using a vector of boolean values slower than a dynamic bitset?

Is using a vector of boolean values slower than a dynamic bitset? I just heard about boost's dynamic bitset, and I was wondering is it worth the trouble. Can I just use vector of boolean values in...

stackoverflow.com