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

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

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

#####  Namespaces

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

#####  Variants

#####  Views

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

#####  Actions

#  Standard library header  <iterator>

From cppreference.com

< [ cpp ](/w/cpp "cpp") ‎ | [ header ](/w/cpp/header "cpp/header")

[ 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 ](/w/cpp/iterator "cpp/iterator")  
[ 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)

[ Standard library headers ](/w/cpp/header "cpp/header")

Language support  
---  
|  [ ` <cstddef> ` ](/w/cpp/header/cstddef "cpp/header/cstddef")  
---  
[ ` <cstdlib> ` ](/w/cpp/header/cstdlib "cpp/header/cstdlib")  
[ ` <version> ` ](/w/cpp/header/version "cpp/header/version") (C++20)  
[ ` <limits> ` ](/w/cpp/header/limits "cpp/header/limits")  
[ ` <climits> ` ](/w/cpp/header/climits "cpp/header/climits")  
  
|  [ ` <cfloat> ` ](/w/cpp/header/cfloat "cpp/header/cfloat")  
---  
[ ` <cstdint> ` ](/w/cpp/header/cstdint "cpp/header/cstdint") (C++11)  
[ ` <stdfloat> ` ](/w/cpp/header/stdfloat "cpp/header/stdfloat") (C++23)  
[ ` <new> ` ](/w/cpp/header/new "cpp/header/new")  
[ ` <typeinfo> ` ](/w/cpp/header/typeinfo "cpp/header/typeinfo")  
  
|  [ ` <source_location> ` ](/w/cpp/header/source_location "cpp/header/source
location") (C++20)  
---  
[ ` <exception> ` ](/w/cpp/header/exception "cpp/header/exception")  
[ ` <initializer_list> ` ](/w/cpp/header/initializer_list
"cpp/header/initializer list") (C++11)  
[ ` <compare> ` ](/w/cpp/header/compare "cpp/header/compare") (C++20)  
  
  
  
|  [ ` <coroutine> ` ](/w/cpp/header/coroutine "cpp/header/coroutine") (C++20)  
---  
[ ` <csignal> ` ](/w/cpp/header/csignal "cpp/header/csignal")  
[ ` <cse