#####  [ cppreference.com ](/)

[ Create account
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fiterator&type=signup)

  * [ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fiterator "You are encouraged to log in; however, it is not mandatory \[o\]")

#####  Namespaces

  * [ Page ](/w/cpp/iterator "View the content page \[c\]")
  * [ Discussion ](/mwiki/index.php?title=Talk:cpp/iterator&action=edit&redlink=1 "Discussion about the content page \[t\]")

#####  Variants

#####  Views

  * [ View ](/w/cpp/iterator)
  * [ Edit ](/mwiki/index.php?title=cpp/iterator&action=edit "You can edit this page. Please use the preview button before saving \[e\]")
  * [ History ](/mwiki/index.php?title=cpp/iterator&action=history "Past revisions of this page \[h\]")

#####  Actions

#  Iterator library

From cppreference.com

< [ cpp ](/w/cpp "cpp")

[ C++ ](/w/cpp "cpp")

[ Compiler support ](/w/cpp/compiler_support "cpp/compiler support")  
---  
[ Freestanding and hosted ](/w/cpp/freestanding "cpp/freestanding")  
[ Language ](/w/cpp/language "cpp/language")  
[ Standard library ](/w/cpp/standard_library "cpp/standard library")  
[ Standard library headers ](/w/cpp/header "cpp/header")  
[ Named requirements ](/w/cpp/named_req "cpp/named req")  
[ Feature test macros ](/w/cpp/feature_test "cpp/feature test") (C++20)  
[ Language support library ](/w/cpp/utility#Language_support "cpp/utility")  
[ Concepts library ](/w/cpp/concepts "cpp/concepts") (C++20)  
[ Metaprogramming library ](/w/cpp/meta "cpp/meta") (C++11)  
[ Diagnostics library ](/w/cpp/error "cpp/error")  
[ General utilities library ](/w/cpp/utility "cpp/utility")  
[ Strings library ](/w/cpp/string "cpp/string")  
[ Containers library ](/w/cpp/container "cpp/container")  
**Iterators library**  
[ Ranges library ](/w/cpp/ranges "cpp/ranges") (C++20)  
[ Algorithms library ](/w/cpp/algorithm "cpp/algorithm")  
[ Numerics library ](/w/cpp/numeric "cpp/numeric")  
[ Localizations library ](/w/cpp/locale "cpp/locale")  
[ Input/output library ](/w/cpp/io "cpp/io")  
[ Filesystem library ](/w/cpp/filesystem "cpp/filesystem") (C++17)  
[ Regular expressions library ](/w/cpp/regex "cpp/regex") (C++11)  
[ Concurrency support library ](/w/cpp/thread "cpp/thread") (C++11)  
[ Technical specifications ](/w/cpp/experimental "cpp/experimental")  
[ Symbols index ](/w/cpp/symbol_index "cpp/symbol index")  
[ External libraries ](/w/cpp/links/libs "cpp/links/libs")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/navbar_content&action=edit)

**Iterator library**

Iterator concepts  
---  
|  [ indirectly_readable  ](/w/cpp/iterator/indirectly_readable
"cpp/iterator/indirectly readable") (C++20)  
---  
[ indirectly_writable  ](/w/cpp/iterator/indirectly_writable
"cpp/iterator/indirectly writable") (C++20)  
[ weakly_incrementable  ](/w/cpp/iterator/weakly_incrementable
"cpp/iterator/weakly incrementable") (C++20)  
[ incrementable  ](/w/cpp/iterator/incrementable "cpp/iterator/incrementable")
(C++20)  
[ input_or_output_iterator  ](/w/cpp/iterator/input_or_output_iterator
"cpp/iterator/input or output iterator") (C++20)  
  
|  [ sentinel_for  ](/w/cpp/iterator/sentinel_for "cpp/iterator/sentinel for")
(C++20)  
---  
[ sized_sentinel_for  ](/w/cpp/iterator/sized_sentinel_for "cpp/iterator/sized
sentinel for") (C++20)  
[ input_iterator  ](/w/cpp/iterator/input_iterator "cpp/iterator/input
iterator") (C++20)  
[ output_iterator  ](/w/cpp/iterator/output_iterator "cpp/iterator/output
iterator") (C++20)  
  
  
  
|  [ forward_iterator  ](/w/cpp/iterator/forward_iterator
"cpp/iterator/forward iterator") (C++20)  
---  
[ bidirectional_iterator  ](/w/cpp/iterator/bidirectional_iterator
"cpp/iterator/bidirectional iterator") (C++20)  
[ random_access_iterator  ](/w/cpp/iterator/random_access_iterator
"cpp/iterator/random access iterator") (C++20)  
[ contiguous_iterator  ](/w/cpp/iterator/contiguous_iterator
"cpp/iterator/contiguous itera