Vector's ctor.

Gabriel Dos Reis gdr@cs.tamu.edu
Mon Oct 11 19:35:00 GMT 2004


Dhruv Matani <dhruvbird@gmx.net> writes:

| Hello,
| 	I wanted to know if such a construct is a valid according to the C++
| standard. If it is then there is a problem in the library.
| 
| std::vector<int> iv(0, 1);

Yes.  There is no requirement that n shall be nonzero.

-- Gaby



More information about the Libstdc++ mailing list