Topic: Clarify DWP wording please
Author: David Byrden <100101.2547@compuserve.com>
Date: 1996/01/21 Raw View
An earlier post of mine seems to be lost, so here is my question put in
another light;
The Sep 95 standard says, for certain containers, that in certain cases
an operation will not invalidate iterators and references to its
elements. For example, 23.2.5.6
"If no reallocation happens, all the iterators and references before the
insertion point remain valid."
My question; by "references", does it mean actual T& that you may have
declared like so;
T& myRef = myVector[0] ;
OR does it mean objects of the container's own specific reference type,
like this;
vector<int>::reference = myVector[0] ;
This distinction is not trivial; it will determine allocators can be used
with memory devices other than plain RAM.
David
---
[ 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. ]