Article View: comp.std.c++
Article #3925Re: strings as stl container
From: Nathan Myers, http://www.cantrip...
Date: Fri, 05 Apr 1996 03:36
Date: Fri, 05 Apr 1996 03:36
29 lines
1732 bytes
1732 bytes
Joe Buck wrote: > Nico Josuttis <nico@bredex.de> writes: > >Due to the fact that strings have iterator support, > >they could be used as stl container. > > >But two things are missing: > > - push_back() > > - clear() > > No, these are not needed. The January '96 WP lists clear() as a required member of a Sequence, and push_back() as an optional member to be "provided only for the containers for which they take constant time". In that version of the WP, some of the optional members are provided, others are not. These omissions probably should be listed as an open issue for the Strings chapter. Nathan Myers ncm@cantrip.org --- [ 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 ] [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ] [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ] [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Technical Details
Message-ID:
<31648016.2503F398@cantrip.org>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<199604020907.LAA06972@bredex.bredex.de> <4jvdnd$c9c@hermes.synopsys.com>Show Full Headers
Complete Article Headers
From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org> Message-ID: <31648016.2503F398@cantrip.org> X-Original-Date: Thu, 04 Apr 1996 18:06:14 -0800 Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 05 Apr 96 03:36:58 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Subject: Re: strings as stl container Organization: The Cantrip Cooperative References: <199604020907.LAA06972@bredex.bredex.de> <4jvdnd$c9c@hermes.synopsys.com> X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.13 i386) Cc: rwilhelm@str.com X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMWSVb+EDnX0m9pzZAQE19gF/RkthJIYNiHQuEW52rFoGLenvQDWwHl2H fwDRu9qMDq3M4k2RH8S7K/wVf3Lej26M =Lyp/