Article View: comp.std.c++
Article #3269basic_string& operator=(const basic_string&)
From: john (j.d.) hickin
Date: Tue, 06 Feb 1996 18:28
Date: Tue, 06 Feb 1996 18:28
37 lines
2428 bytes
2428 bytes
The following was taken from a copy of the DWP:
basic_string<charT,traits,Allocator>&
operator=(const basic_string<charT,traits,Allocator>& str);
Effects:
If *this and str are not the same object, modifies *this such that:
Table 7--operator=(str) effects
+-------------------------------------------------+
| Element Value |
+-------------------------------------------------+
|data() points at the first element of an |
| allocated copy of the the array |
| whose first element is pointed at |
| by str.size() |
|size() str.size() |
|capacity() a value at least as large as size() |
+-------------------------------------------------+
If *this and str are the same object, the member has no effect.
Returns:
*this
Aside from a seeming typographical error in the Value column for Element data()
(... by str.data() ?) the wording of this seems to rule out a counted pointer
representation.
Is my interpretation correct?
--
John Hickin Bell-Northern Research, Montreal, Quebec
(514) 765-7924 hickin@bnr.ca
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is
in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
Technical Details
Message-ID:
<4f81p2$j2u@bmtlh10.bnr.ca>Path:
arc1-ca.pugleaf.net!fido.asd.sgi.com!austernShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern From: "john (j.d.) hickin" <hickin@bnr.ca> Newsgroups: comp.std.c++ Subject: basic_string& operator=(const basic_string&) Date: 06 Feb 1996 10:28:03 PST Organization: Bell-Northern Research Approved: austern@isolde.mti.sgi.com Message-ID: <4f81p2$j2u@bmtlh10.bnr.ca> NNTP-Posting-Host: isolde.mti.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-Date: Tue, 6 Feb 1996 17:05:38 +0000 Content-Identifier: basic_string&... X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715) X-Url: news:comp.lang.c X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMRed3Ey4NqrwXLNJAQF5dgIAw6buPq6Z214O2R/OjqDiQJdqBqeWTyJO t2qtWQd5tGGhKurr1MZgKcR8aDCwuVcmdUta6Zi4MA5uaqhZAw2/Cw== =bxEY Originator: austern@isolde.mti.sgi.com