From Cppreference
|
|
template<
class BidirectionalIterator,
class CharT = typename std::iterator_traits<BidirectionalIterator>::value_type,
class Traits = std::regex_traits<CharT>
> class regex_iterator
|
| (since C++11)
|
|
|
|
Several specializations for common character sequence types are defined:
|
|
| Type
| Definition
|
|
|
| cregex_iterator
| regex_iterator<const char*>
|
|
|
| wcregex_iterator
| regex_iterator<const wchar_t*>
|
|
|
| sregex_iterator
| regex_iterator<std::string::const_iterator>
|
|
|
| wsregex_iterator
| regex_iterator<std::wstring::const_iterator>
|
[edit] Example
Output: