@@ -12,10 +12,20 @@ f1_keywords:
1212 - " regex_iterator"
1313 - " std::regex_iterator"
1414 - " regex/std::regex_iterator"
15+ - " std::regex_iterator::operator=="
16+ - " regex/std::regex_iterator::operator=="
17+ - " std::regex_iterator::operator!="
18+ - " regex/std::regex_iterator::operator!="
19+ - " std::regex_iterator::operator*"
20+ - " regex/std::regex_iterator::operator*"
21+ - " std::regex_iterator::operator->"
22+ - " regex/std::regex_iterator::operator->"
23+ - " std::regex_iterator::operator++"
24+ - " regex/std::regex_iterator::operator++"
1525dev_langs :
1626 - " C++"
1727helpviewer_keywords :
18- - " regex_iterator class [TR1] "
28+ - " regex_iterator class"
1929ms.assetid : 0cfd8fd0-5a95-4f3c-bf8e-6ef028c423d3
2030caps.latest.revision : 16
2131author : " corob-msft"
@@ -41,6 +51,9 @@ Iterator class for matches.
4151
4252## Syntax
4353```
54+ template<class BidIt,
55+ class Elem = typename std::iterator_traits<BidIt>::value_type,
56+ class RxTraits = regex_traits<Elem> >
4457class regex_iterator {
4558public:
4659 typedef basic_regex<Elem, RXtraits> regex_type;
@@ -49,24 +62,29 @@ public:
4962 typedef std::ptrdiff_t difference_type;
5063 typedef const match_results<BidIt>* pointer;
5164 typedef const match_results<BidIt>& reference;
65+
5266 regex_iterator();
5367 regex_iterator(
5468 BidIt first, BidIt last, const regex_type& re,
5569 regex_constants::match_flag_type f = regex_constants::match_default);
70+
5671 bool operator==(const regex_iterator& right);
5772 bool operator!=(const regex_iterator& right);
5873 const match_results<BidIt>& operator*();
5974 const match_results<BidIt> * operator->();
6075 regex_iterator& operator++();
6176 regex_iterator& operator++(int);
77+
78+ private:
6279 BidIt begin; // exposition only
6380 BidIt end; // exposition only
6481 regex_type *pregex; // exposition only
6582 regex_constants::match_flag_type flags; // exposition only
6683 match_results<BidIt> match; // exposition only
6784 };
6885```
69- #### Parameters
86+
87+ ### Parameters
7088 ` BidIt `
7189 The iterator type for submatches.
7290
@@ -140,7 +158,6 @@ int main()
140158
141159 return (0);
142160 }
143-
144161```
145162
146163```Output
@@ -194,7 +211,6 @@ int main()
194211
195212 return (0);
196213 }
197-
198214```
199215
200216```Output
@@ -252,7 +268,6 @@ int main()
252268
253269 return (0);
254270 }
255-
256271```
257272
258273```Output
@@ -306,7 +321,6 @@ int main()
306321
307322 return (0);
308323 }
309-
310324```
311325
312326```Output
@@ -320,7 +334,6 @@ match == a
320334
321335```
322336regex_iterator& operator++();
323-
324337regex_iterator& operator++(int);
325338```
326339
@@ -364,7 +377,6 @@ int main()
364377
365378 return (0);
366379 }
367-
368380```
369381
370382```Output
@@ -422,7 +434,6 @@ int main()
422434
423435 return (0);
424436 }
425-
426437```
427438
428439```Output
@@ -476,7 +487,6 @@ int main()
476487
477488 return (0);
478489 }
479-
480490```
481491
482492```Output
@@ -530,7 +540,6 @@ int main()
530540
531541 return (0);
532542 }
533-
534543```
535544
536545```Output
@@ -774,6 +783,14 @@ match == a
774783```
775784
776785## See Also
777- [ \< regex>] ( ../standard-library/regex.md )
778- [ regex_iterator] ( ../standard-library/regex-iterator-class.md )
786+ [ \< regex>] ( ../standard-library/regex.md )
787+ [ regex_constants Class] ( ../standard-library/regex-constants-class.md )
788+ [ regex_error Class] ( ../standard-library/regex-error-class.md )
789+ [ \< regex> functions] ( ../standard-library/regex-functions.md )
790+ [ regex_iterator Class] ( ../standard-library/regex-iterator-class.md )
791+ [ \< regex> operators] ( ../standard-library/regex-operators.md )
792+ [ regex_token_iterator Class] ( ../standard-library/regex-token-iterator-class.md )
793+ [ regex_traits Class] ( ../standard-library/regex-traits-class.md )
794+ [ \< regex> typedefs] ( ../standard-library/regex-typedefs.md )
779795
796+
0 commit comments