std::regex_iterator< _Bi_iter, _Ch_type, _Rx_traits >
Contents
Constructor & Destructor Documentation
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::regex_iterator()[default]
Provides a singular iterator, useful for indicating one-past-the-end of a range.
Referenced by std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::regex_iterator().
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::regex_iterator(_Bi_iter__a,_Bi_iter__b,constregex_type&__re,regex_constants::match_flag_type__m=regex_constants::match_default)[inline]
Constructs a regex_iterator...
Parameters__a [IN] The start of a text range to search.
__b [IN] One-past-the-end of the text range to search.
__re [IN] The regular expression to match.
__m [IN] Policy flags for match rules.
References std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::regex_iterator(), and
std::regex_search().
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::regex_iterator(constregex_iterator<_Bi_iter,_Ch_type,_Rx_traits>&)[default]
Copy constructs a regex_iterator.
Detailed Description
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>
class std::regex_iterator< _Bi_iter, _Ch_type, _Rx_traits >"An iterator adaptor that will provide
repeated calls of regex_search over a range until no more matches remain.
Since
C++11
Member Function Documentation
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>constvalue_type&std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator*()const[inline],[noexcept]
Dereferences a regex_iterator.
template<typename_Bi_iter,typename_Ch_type,typename_Rx_traits>regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>&std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator++()
Increments a regex_iterator.
References std::regex_constants::match_continuous, std::regex_constants::match_not_null,
std::regex_constants::match_prev_avail, and std::regex_search().
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>regex_iteratorstd::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator++(int)[inline]
Postincrements a regex_iterator.
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>constvalue_type*std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator->()const[inline],[noexcept]
Selects a regex_iterator member.
template<typename_Bi_iter,typename_Ch_type=typenameiterator_traits<_Bi_iter>::value_type,typename_Rx_traits=regex_traits<_Ch_type>>regex_iterator&std::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator=(constregex_iterator<_Bi_iter,_Ch_type,_Rx_traits>&)[default]
Copy assigns one regex_iterator to another.
template<typename_Bi_iter,typename_Ch_type,typename_Rx_traits>boolstd::regex_iterator<_Bi_iter,_Ch_type,_Rx_traits>::operator==(constregex_iterator<_Bi_iter,_Ch_type,_Rx_traits>&__rhs)const[noexcept]
Tests the equivalence of two regex iterators.
Name
std::regex_iterator< _Bi_iter, _Ch_type, _Rx_traits >
Synopsis
#include <regex>
PublicTypestypedef std::ptrdiff_t difference_typetypedefstd::forward_iterator_tagiterator_categorytypedef const value_type * pointertypedef const value_type & referencetypedefbasic_regex< _Ch_type, _Rx_traits > regex_typetypedefmatch_results< _Bi_iter > value_typePublicMemberFunctionsregex_iterator ()=default
Provides a singular iterator, useful for indicating one-past-the-end of a range.
regex_iterator (_Bi_iter __a, _Bi_iter __b, const regex_type &__re, regex_constants::match_flag_type__m=regex_constants::match_default)
regex_iterator (_Bi_iter, _Bi_iter, const regex_type &&,
regex_constants::match_flag_type=regex_constants::match_default)=deleteregex_iterator (const regex_iterator &)=default
Copy constructs a regex_iterator.
const value_type & operator* () const noexcept
Dereferences a regex_iterator.
regex_iterator & operator++ ()
Increments a regex_iterator.
regex_iteratoroperator++ (int)
Postincrements a regex_iterator.
const value_type * operator-> () const noexcept
Selects a regex_iterator member.
regex_iterator & operator= (const regex_iterator &)=default
Copy assigns one regex_iterator to another.
bool operator== (const regex_iterator &) const noexcept
Tests the equivalence of two regex iterators.
bool operator== (default_sentinel_t) const noexcept
