Is the use of std::vector objects in C++ acceptable, or should I use an alternative?

In “Effective STL,” Item 18, Scott Meyers recommended: “Avoid using vector< bool >.”:

As an STL container, there are really only two things wrong with
vector< bool >. First, it’s not an STL container. Second, it doesn’t
hold bools. Other than that, there’s not much to object to.

Leave a Comment