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

FreeBSD Manual Pages

  
 
  

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

NAME
       std::ranges::common_view::common_view  -	std::ranges::common_view::com-
       mon_view

Synopsis
	  common_view()	= default;		 (1) (since C++20)
	  constexpr explicit common_view( V r ); (2) (since C++20)

	  Constructs a common_view.

	  1) Default constructor. Value-initializes the	underlying view. After
       construction,
	  base() returns a copy	of V().
	  2) Initializes the underlying	view with std::move(r).

Parameters
	  r - underlying view to be adapted into a common-range

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
	  LWG  3405  C++20	 the  redundant	 converting  constructor might
       removed
			      cause constraint recursion

Category:
	    * Todo no example

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

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

home | help