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

FreeBSD Manual Pages

  
 
  

home | help
deductiongu...::take_view(3)  C++ Standard Libary deductiongu...::take_view(3)

NAME
       deductionguidesforstd::ranges::take_view	      -	      deductionguides-
       forstd::ranges::take_view

Synopsis
	  Defined in header <ranges>
	  template< class R >
	  take_view(	 R&&,	  ranges::range_difference_t<R>	     )	    ->
       (since C++20)
	  take_view<views::all_t<R>>;

	  The  deduction guide is provided for std::ranges::take_view to allow
       deduction from
	  range	and number of elements.

	  If R is a view, the deduced type is ranges::take_view<R>; otherwise,
       the deduced
	  type is usually ranges::take_view<ranges::ref_view<R>>.

Example
	   This	section	is incomplete
	   Reason: no example

	 Defect	Reports

	  The following	behavior-changing defect reports were applied retroac-
       tively to
	  previously published C++ standards.

	     DR	   Applied to	   Behavior as published	       Correct
       behavior
			      the  template  parameter	R  is	   R is	uncon-
       strained
	  LWG 3447 C++20      constrained with range	      (but  range_dif-
       ference_t requires
							      range)

http://cppreference.com		  2022.07.31	  deductiongu...::take_view(3)

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

home | help