Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::ranges...::find_next(3)  C++ Standard Libary std::ranges...::find_next(3)

NAME
       std::ranges::split_view::find_next - std::ranges::split_view::find_next

Synopsis
	  constexpr    ranges::subrange<ranges::iterator_t<V>>	   (exposition
       only*)
	      /*find_next*/( ranges::iterator_t<V> it );

	  Searches for the next	occurrence of pattern in the underlying	 view.
       This function is
	  for exposition only and its name is not normative.

	  Equivalent to:

	auto [b, e] = ranges::search(ranges::subrange(it, ranges::end(base_)),
       pattern_);

	if (b != ranges::end(base_) and	ranges::empty(pattern_))
	{
	    ++b;
	    ++e;
	}

	return {b, e};

Parameters
	  it - an iterator to the position at which to start the search

Return value
	  A  subrange  that represents the next	position of the	pattern, if it
       was found. An
	  empty	subrange otherwise.

http://cppreference.com		  2024.06.10	  std::ranges...::find_next(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::ranges::split_view::find_next&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help