Article View: comp.std.c++
Article #3891strings as stl container
From: Nico Josuttis
Date: Tue, 02 Apr 1996 15:16
Date: Tue, 02 Apr 1996 15:16
26 lines
1587 bytes
1587 bytes
Due to the fact that strings have iterator support,
the could be used as stl container.
But two things are missing:
- push_back()
- clear()
These are fundamental operations, that the corresponding "normal"
container, namely vector, has.
Especially push_back() would be essential to use insert iterators
for strings.
Wouldn't it make sense to introduce them for strings ?
--------
Nico address: BREDEX GmbH
email: nico@bredex.de Nicolai Josuttis
Fallersleber-Tor-Wall 23
phone: +49 531 24330-0 D-38100 Braunschweig
fax: +49 531 24330-99 Germany
--------
[ 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:
<199604020907.LAA06972@bredex.bredex.de>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: Nico Josuttis <nico@bredex.de> Newsgroups: comp.std.c++ Subject: strings as stl container Date: 2 Apr 1996 15:16:12 GMT Organization: ? Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <199604020907.LAA06972@bredex.bredex.de> NNTP-Posting-Host: taumet.eng.sun.com X-Authentication-Warning: bredex.bredex.de: Host localhost didn't use HELO protocol X-Mts: smtp Content-Length: 686 Originator: clamage@taumet