Iterator Concepts

From Cppreference

Jump to: navigation, search

Contents

[edit] Notation

In the following, as in the standard, the following notation is used:

[edit] Iterator Requirements

Iterator is a general concept that does not guarantee much beyond the ability to advance and dereference elements. Formally, an iterator has the following requirements:

In addition, the following expressions are valid:

Examples:

[edit] InputIterator Requirements

[edit] OutputIterator Requirements

[edit] ForwardIterator Requirements

[edit] BidirectionalIterator Requirements

[edit] RandomAccessIterator Requirements