Skip to content

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

@F-Haferkorn

Description

@F-Haferkorn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions