tle=cpp/ranges/iterator_t&action=edit&section=1 "Edit
section: Template parameters") ]  Template parameters

T  |  \-  |  a type that can be used in  [ std::ranges::begin ](/w/cpp/ranges/begin "cpp/ranges/begin")  
---|---|---  
R  |  \-  |  a [ ` range ` ](/w/cpp/ranges/range "cpp/ranges/range") type or a [ ` sized_range ` ](/w/cpp/ranges/sized_range "cpp/ranges/sized range") type   
  
###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/iterator_t&action=edit&section=2 "Edit
section: Notes") ]  Notes

` iterator_t ` can be applied to non-range types, e.g. arrays with unknown
bound.

###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/iterator_t&action=edit&section=3 "Edit
section: Defect reports") ]  Defect reports

The following behavior-changing defect reports were applied retroactively to
previously published C++ standards.

DR  |  Applied to  |  Behavior as published  |  Correct behavior   
---|---|---|---  
[ LWG 3860 ](https://cplusplus.github.io/LWG/issue3860) |  C++20  |  ` range_common_reference_t ` was missing  |  added   
[ LWG 3946 ](https://cplusplus.github.io/LWG/issue3946) |  C++23  |  ` const_iterator_t ` and ` const_sentinel_t ` were inconsistent   
with the result of ` ranges::cbegin ` and ` ranges::cend ` respectively  |  tweaked   
  
###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/iterator_t&action=edit&section=4 "Edit
section: See also") ]  See also

[ iter_value_t  iter_reference_t  iter_const_reference_t  iter_difference_t  iter_rvalue_reference_t  iter_common_reference_t  ](/w/cpp/iterator/iter_t "cpp/iterator/iter t") (C++20)  (C++20)  (C++23)  (C++20)  (C++20)  (C++20)  |  computes the associated types of an iterator   
(alias template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/iterator/dsc_iter_t&action=edit)  
---|---  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/iterator_t&oldid=166342
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/iterator_t&oldid=166342)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/ranges/iterator_t "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/ranges/iterator_t "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
  * [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
  * [ Printable version ](/mwiki/index.php?title=cpp/ranges/iterator_t&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/iterator_t&oldid=166342 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/ranges/iterator_t&action=info)

  * In other languages 

  * [ Español ](http://es.cppreference.com/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
  * [ 日本語 ](http://ja.cppreference.com/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")
  * [ 中文 ](http://zh.cppreference.com/w/cpp/ranges/iterator_t "cpp/ranges/iterator t")

  * This page was last modified on 19 December 2023, at 07:41. 
  * This page has been accessed 50,822 times. 

  * [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy")
  * [ About cppreference.com ](/w/Cppreference:About "Cppreference:About")
  * [ Disclaimers ](/w/Cppreference:General_disclaimer "Cppreference:General disclaimer")

  * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppreference.com/mwiki