| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
constexprranges::subrange<ranges::iterator_t<V>> /*find_next*/(ranges::iterator_t<V> it); | (exposition only*) | |
Searches for the next occurrence of pattern in the underlying view. Equivalent to:
auto[b, e]=ranges::search(ranges::subrange(it,ranges::end(base_)), pattern_);
if(b!=ranges::end(base_) andranges::empty(pattern_))
{
++b;
++e;
}
return{b, e};
| it | - | an iterator to the position at which to start the search |
A subrange that represents the next position of the pattern, if it was found. An empty subrange otherwise.