p12tic / cppreference-doc

C++ standard library reference
en.cppreference.com
GNU General Public License v3.0
411 stars 102 forks source link

Not sure: : should forward_iterator_tag not also inherit from truct output_iterator_tag ? #136

Open F-Haferkorn opened 6 months ago

F-Haferkorn commented 6 months ago

Hello at all, reading _https://en.cppreference.com/w/cpp/iterator/iterator_tags_, i wonder, the inheritance structure of should forward_iterator_tag is correct herein.

Is the forward_iterator_tag not also inherit from sruct output_iterator_tag ?

it says struct forward_iterator_tag : public input_iterator_tag {}; // (4)

Were do I find a decise manual howto properly write my own iterators for my own classes. Yours, Frank.Haferkorn