Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-08-31 04:51:45

> I would expect it to return .end() iterator in this case.
> Is this behavior correct according to standard or not?
> If not, is it reasonable to submit bug report?

Yes, the std says:

"The iterator returned by a.erase(q1,q2) points to the element pointed to by
q2 prior to any elements
being erased. If no such element exists, a.end() is returned."

So your expectations were valid, and the implementation appears to have a


Boost list run by bdawes at, gregod at, cpdaniel at, john at