🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3025

Enhanced container functionality

#3025
From: Eugene Radchenko
Date: Wed, 17 Jan 1996 12:02
28 lines
1914 bytes
Hi!
Having used the STL for some time, I have come to greatly missing some nice
things (and eventually derived Vector<T> from vector<T>, adding them along
with persistence support).
First, it is the ability to (easily) flush the entire container
  void erase() { erase(begin(), end()); }
Second, it is the 'post-factum' equivalents to some constructors
  void assign(size_type n, T t = T());
  void assign(const_iterator first, const_iterator last);
etc. - putting the container into the same state as the one it would have
after the respective constructor (with the possible exception of more
reserved space available).
I think these features deserve inclusion.

              Bye                Genie


--
--------------------------------------------------------------------
Eugene V. Radchenko           Research associate, Computer Chemistry
E-mail: eugene@qsar.chem.msu.su                Fax: +7-(095)939-0290 
Ordinary mail:  Chair of Organic Chemistry, Department of Chemistry,
                      Moscow State University, 119899 Moscow, Russia
*****************  Disappearances are deceptive  *******************
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <ABJRD_mKQD@qsar.chem.msu.su>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: "Eugene Radchenko" <eugene@qsar.chem.msu.su>
Message-ID: <ABJRD_mKQD@qsar.chem.msu.su>
X-Original-Date: Wed, 17 Jan 1996 14:00:35 +0300 (MSK)
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 17 Jan 96 12:02:22 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Organization: Lab. of Org.Synth., MSU
X-Mailer: dMail [Demos Mail for DOS v1.23]
Subject: Enhanced container functionality
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMPzlceEDnX0m9pzZAQG17QF/afZQtkgSehl5YshMwhRNCG5eQtPnG6/A
 9N74zq+Ump+klTgxjoBKqLzAE8w0236+
 =XKrX