vector<bool> does not behave like other vectors such as vector<int>.
vector<bool> is template specialization of the vector template class. It was was done to optimize space by using 1 bit per element. It does not contain values with the bool type.
Reference: http://en.wikipedia.org/wiki/Boolean_datatype
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment