August 2012
Intermediate to advanced
976 pages
30h 17m
English
The program on page 729 that found violations of the “i before e except after c” grammar rule printed only the first match in its input sequence. We can get all the matches by using an sregex_iterator
. The regex iterators are iterator adaptors (§ 9.6, p. 368) that are bound to an input sequence and a regex object. As described in Table 17.8 (on the previous page), there are specific regex iterator types that correspond to each of the different types of input sequences. The iterator operations are described in Table 17.9 (p. 736).
Table 17.9. sregex_iterator Operations
When we bind an sregex_iterator ...
Read now
Unlock full access