Namespaces
Variants
Views
Actions

Talk:cpp/iterator/reverse iterator/base

From cppreference.com

Previously this page had the following paragraph:

The base iterator refers to the element that is next to the element the reverse_iterator is currently pointing to. That is std::reverse_iterator(it).base() == std::next(it).

Do not EVER add this shit again. If the paragraph above is right, then the following code should pass without assertion errors:

http://pastebin.com/y62n8Pyg

Guess what? It doesn't happen!

You are right, thank you for noticing and correcting the error: this is the very reason this reference is publicly editable. If there were more editors like you, this wouldn't have sat unnoticed for over a year. --Cubbi (talk) 08:18, 1 August 2014 (PDT)