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

FreeBSD Manual Pages

  
 
  

home | help
std::ranges...hunk_by_view(3) C++ Standard Libarystd::ranges...hunk_by_view(3)

NAME
       std::ranges::chunk_by_view::chunk_by_view			     -
       std::ranges::chunk_by_view::chunk_by_view

Synopsis
	  chunk_by_view()

	      requires std::default_initializable<V>  &&	   (1)	(since
       C++23)
		       std::default_initializable<Pred>

	      =	default;
	  constexpr  explicit  chunk_by_view(  V base, Pred pred ); (2)	(since
       C++23)

	  Constructs a chunk_by_view.

	  1) Default constructor. Value-initializes the	underlying  data  mem-
       bers via	their
	  respective default member initializers:
	    * the view base_ via = V(),
	    * the binary predicate pred_ via = Pred().
	  2) Move constructs the underlying data members:
	    * the view base_ with std::move(base),
	    * the binary predicate pred_ with std::move(pred).

Parameters
	  base - the view to split
	  pred	- the function object (a binary	predicate) used	as a splitting
       criteria

Example
	   This	section	is incomplete
	   Reason: no example

Category:
	    * Todo no example

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

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

home | help