From 9135605137002786204
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,953748e81bf9ec65
X-Google-Attributes: gidf78e5,public
From: James Kuyper <kuyper@wizard.net>
Subject: Re: Class String of Standard
Date: 1998/06/12
Message-ID: <35814811.167E@wizard.net>#1/1
X-Deja-AN: 362062321
X-NNTP-Posting-Host: gscsgi02.gsfc.nasa.gov
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <6lcfss$q3v$1@duke.telepac.pt> <6lhfm1$q74$1@nnrp1.dejanews.com> <6lj1j8$34d$1@nnrp1.dejanews.com> <6lmmml$9sb$1@nnrp1.dejanews.com> <m3wwao3zw5.fsf@gabi-soft.fr>
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
Mime-Version: 1.0
Newsgroups: comp.std.c++
Originator: clamage@taumet


J. Kanze wrote:
...
> A call to c_str or data DOES invalidate all iterators and references
> into the string.

I found a statement that c_str() and data() invalidate references
returned by operator[]; since at() is defined in terms of operator[],
those references are also invalidated. I couldn't find a similar
statement about the iterators; where is it?


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




