🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Byrden Sun, 21 Jan 1996 10:58
Clarify DWP wording please
#3053
Author: David Byrden
Date: Sun, 21 Jan 1996 10:58
29 lines
1514 bytes
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. ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads