This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Vector's ctor.
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Dhruv Matani <dhruvbird at gmx dot net>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: 11 Oct 2004 14:35:52 -0500
- Subject: Re: Vector's ctor.
- Organization: Texas A&M University, Department of Computer Science
- References: <1097522914.10413.1.camel@localhost.localdomain>
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