Template talk:cpp/iterator/inserter/operator++

Hi,

I'm new to contributing to cppreference. I noticed that has the post-increment operator documented as follows:

but the standard (at least C++17) says it should be

notice the missing reference in the return value. Therefore, I went ahead and edited the template and removed the reference from the return value.

So far so good but now I noticed that my change also changed. But the standard says that for the the post-increment operator returns by-reference.

Does someone know what the C++20 standard says? Do you have suggestions how to proceed?

Kind regards! --


 * Thank you very much! I've fixed it. The return types of for these iterators has never been changed since C++98, and the only change is that  is added in C++20. --Fruderica (talk) 01:38, 30 July 2020 (PDT)