C
cdiggins
I have been having a debate with my colleagues. They are claiming that:
"The standard specifies that &v[0] for a vector must give a
contiguous array that can be used by a function expecting
a C-style array."
I have searched the standard but I can not substantiate their claim
(and nor can they), and I believe it to be false. Can anyone point me
to where in the standard that is specified?
Thank you very much in advance,
Christopher Diggins
http://www.cdiggins.com - Home page
http://www.cpp-cookbook.com - C++ Cookbook
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
"The standard specifies that &v[0] for a vector must give a
contiguous array that can be used by a function expecting
a C-style array."
I have searched the standard but I can not substantiate their claim
(and nor can they), and I believe it to be false. Can anyone point me
to where in the standard that is specified?
Thank you very much in advance,
Christopher Diggins
http://www.cdiggins.com - Home page
http://www.cpp-cookbook.com - C++ Cookbook
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]