|
950 | 950 | for an iterator of class type \tcode{I} |
951 | 951 | that does not support \tcode{operator->}. |
952 | 952 | Additionally, in the case of an output iterator, the types |
| 953 | +\indexlibrarymember{value_type}{iterator_traits}% |
| 954 | +\indexlibrarymember{difference_type}{iterator_traits}% |
| 955 | +\indexlibrarymember{reference}{iterator_traits}% |
953 | 956 | \begin{codeblock} |
954 | 957 | iterator_traits<I>::value_type |
955 | 958 | iterator_traits<I>::difference_type |
|
1028 | 1031 | \tcode{iterator_traits<I>} |
1029 | 1032 | has the following publicly accessible members: |
1030 | 1033 | \begin{codeblock} |
1031 | | -using iterator_category = I::iterator_category; |
1032 | | -using value_type = I::value_type; |
1033 | | -using difference_type = I::difference_type; |
1034 | | -using pointer = @\seebelow@; |
1035 | | -using reference = I::reference; |
| 1034 | +using @\libmember{iterator_category}{iterator_traits}@ = I::iterator_category; |
| 1035 | +using @\libmember{value_type}{iterator_traits}@ = I::value_type; |
| 1036 | +using @\libmember{difference_type}{iterator_traits}@ = I::difference_type; |
| 1037 | +using @\libmember{pointer}{iterator_traits}@ = @\seebelow@; |
| 1038 | +using @\libmember{reference}{iterator_traits}@ = I::reference; |
1036 | 1039 | \end{codeblock} |
1037 | 1040 | If the \grammarterm{qualified-id} \tcode{I::pointer} is valid and |
1038 | 1041 | denotes a type, then \tcode{iterator_traits<I>::pointer} names that type; |
|
1107 | 1110 |
|
1108 | 1111 | \pnum |
1109 | 1112 | Explicit or partial specializations of \tcode{iterator_traits} may |
1110 | | -have a member type \tcode{iterator_concept} that is used to indicate |
| 1113 | +have a member type \tcode{\libmember{iterator_concept}{iterator_traits}} that is used to indicate |
1111 | 1114 | conformance to the iterator concepts\iref{iterator.concepts}. |
1112 | 1115 | \begin{example} |
1113 | 1116 | To indicate conformance to the \libconcept{input_iterator} concept |
|
0 commit comments