[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: Re: CXX-DEV: guarantee that vector<...>.end () are the same
From: Martin Sebor <sebor () roguewave ! com>
Date: 2004-08-20 20:54:32
Message-ID: 41266508.9070405 () roguewave ! com
[Download RAW message or body]
DY, JERRY U (SBCSI) wrote:
> Are there any guarantees that the return value of the vector<T>'s member
> function end() for all instances of vector<T> be the same value? For
> example:
Definitely not. Just like with pointers, unless the two iterators
point into the same range the behavior is undefined. You should get
a runtime assertion when you turn on the debugging iterators (in
both libstdc++ and in our implementation).
Martin
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic