🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Modifying STL containers via an iterator

#2545
From: Alexander Stepanov
Date: Mon, 13 Nov 1995 21:41
22 lines
1026 bytes
maeder@glue.CH (Thomas Maeder) wrote:
>
..
>
>Nothing is said for the associative containers, though.

My copy of the STL document (7th paragraph of section 8.2 "Associative
Containers") says:
"erase invalidates only  the iterators and references to the erased elements."

>
>Thomas
-- 
Alexander Stepanov
stepanov@mti.sgi.com


---
[ 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: <488e0i$kl8@murrow.corp.sgi.com>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
References: <47l8qe$9fk@bcarh8ab.bnr.ca> <9511122227.AA22118@eniac.glue.ch>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: Alexander Stepanov <stepanov@murrow.corp.sgi.com>
Newsgroups: comp.std.c++
Subject: Re: Modifying STL containers via an iterator
Date: 13 Nov 1995 21:41:52 GMT
Organization: Silicon Graphics, Inc.
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <488e0i$kl8@murrow.corp.sgi.com>
References: <47l8qe$9fk@bcarh8ab.bnr.ca> <9511122227.AA22118@eniac.glue.ch>
NNTP-Posting-Host: physics2.berkeley.edu