Re: strange crash after assertion with std::map::iterator
- From: "Duane Hebert" <spoo@xxxxxxxxx>
- Date: Tue, 24 Apr 2007 13:38:53 -0400
"Duane Hebert" <spoo@xxxxxxxxx> wrote in message
news:%23BkuB8ohHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
I wasn't very clear with this bit:
end() is a member of a container. What it returns is irrelevant
in that you can never compare to it. You always compare
to end(). So given:
What I mean is that ::end() returns something that indicates
that the iterator is invalid or at least refers to something not
found in the container but it's a member
of the container. It may be implemented as a null pointer,
as -1 or whatever but I don't think it follows that with the
example of i and j that i::end() == j::end() so how could
it follow that an iterator assigned to each would compare?
.
- References:
- strange crash after assertion with std::map::iterator
- From: Mycroft Holmes
- Re: strange crash after assertion with std::map::iterator
- From: Tom Widmer [VC++ MVP]
- Re: strange crash after assertion with std::map::iterator
- From: Mycroft Holmes
- Re: strange crash after assertion with std::map::iterator
- From: Igor Tandetnik
- Re: strange crash after assertion with std::map::iterator
- From: Duane Hebert
- Re: strange crash after assertion with std::map::iterator
- From: Mycroft Holmes
- Re: strange crash after assertion with std::map::iterator
- From: Duane Hebert
- Re: strange crash after assertion with std::map::iterator
- From: Mycroft Holmes
- Re: strange crash after assertion with std::map::iterator
- From: Duane Hebert
- Re: strange crash after assertion with std::map::iterator
- From: Ulrich Eckhardt
- Re: strange crash after assertion with std::map::iterator
- From: Mycroft Holmes
- Re: strange crash after assertion with std::map::iterator
- From: Duane Hebert
- strange crash after assertion with std::map::iterator
- Prev by Date: Re: strange crash after assertion with std::map::iterator
- Next by Date: Re: strange crash after assertion with std::map::iterator
- Previous by thread: Re: strange crash after assertion with std::map::iterator
- Next by thread: Re: strange crash after assertion with std::map::iterator
- Index(es):
Relevant Pages
|