
27 Feb
2005
27 Feb
'05
3:50 p.m.
David Abrahams wrote:
There's a specialization of vector<bool, allocator<bool> > in the standard whose iterators iterate over bits and use a proxy reference and therefore are not even conforming forward iterators. vector<bool,A> for A != allocator<bool> is still required to have conforming random-access iterators.
But I don't think that means that you need different iterator types for different allocators. The data is still just raw data, an array of (say) chars instead of bools. Daniel