Re: strange crash after assertion with std::map::iterator

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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?


.



Relevant Pages

  • Re: get address of virtual method?!
    ... You cannot compare pointers to virtual functions. ... a null pointer constant. ... Pointer to member conversions and qualification conversions are ...
    (microsoft.public.vc.language)
  • Re: easy comparison of figures
    ... Often I want to compare 1 or 2 of those figures when running an altered code. ... Al figures in this container would not be updated, or changed in any way when running the script again. ... run-parameters in the file names. ...
    (comp.soft-sys.matlab)
  • Re: Why keep identity-based equality comparison?
    ... >> equality operator for Py3K, ... Ditto for container methods that ... Whenever you compare two objects that ... > don't have the same type, you'll get an exception and terminate the ...
    (comp.lang.python)
  • Re: Why keep identity-based equality comparison?
    ... > equality operator for Py3K, ... Whenever you compare two objects that ... you'll get an exception and terminate the ... every container type now has this split between identity and ...
    (comp.lang.python)
  • Re: Check Image is over another Image
    ... container, and then compare both sets of images from origin ... the upper left corner. ... what is HTML placement? ...
    (microsoft.public.dotnet.framework.aspnet)