Lars Gullik Bjønnes wrote: > Alfredo Braunstein <[EMAIL PROTECTED]> writes: > > | > And it is not the [-1] element... > | > | ?? Yes it is. > | > | string s; > | assert(&*s.rend() == &s[-1]); > > Not portable, works only on this specific implementation.
You are right (*) (I have to admit that I tried to look at the stl documentation to prove you wrong and failed miserably. Apart from discovering that I exchanged rbegin with rend ;)) Nevertheless, my point still hold: if it's the convention that's used _internally_ in _some_ implementation of the stl, I don't see why it's not good enough for us. Ok, I stop whining. I'm out to a mountain sunday. Have a nice day, Regards, Alfredo (*) But I still believe that it works and will work on all existing std::string and std::vector implementations, for which iterators are merely wrappers around pointers.