Use of Bool Containers

I know when we store data into containers like vector or deque.

But how about bool vector and such bool containers ?

Please cite some of its usage,thanks in advance.
Well, they're containers you can store bools in, there's not much of a difference...
a vector<bool> can be used e.g. for an allocation bitmap of a virtual file system or for the Sieve of Eratosthenes.
I sometimes use them to represent numbers in binary. I'm not sure whether that's extremely clever or extremely stupid, but it serves its purpose.
Topic archived. No new replies allowed.