One thing I know,may not be true, is that the T
should be copy-constructible, that is, the T
should have an accessible copy constructor.
However,is there any other requirements,like copy assignable?
As a complement, I remember that the Effective STL says vector<bool>
is not a standard container because it doesn't meet the requirement of T *p=&c[0]
being well-formed.