Is bitset part of stl?

I am a bit confuse about it
I only know bitset is not a container of stl
Thanks a lot
yes, it is part of STL.

See here: http://cplusplus.com/reference/stl/bitset/
Yes, but vector <bool> is probably a better alternative. See the bottom of this page:
http://www.cplusplus.com/reference/stl/vector/
vector<bool> is somewhat misleading, as it does not fulfill the standard's criteria for a container. It is proxied to optimize for space not efficiency.

I would prefer a bitset to vector<bool>. For more information see More Exceptional C++ by Herb Sutter.
Last edited on
Thank you very much, I haven't finished Exceptional C++ yet
+1 moorecm
Topic archived. No new replies allowed.