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

FreeBSD Manual Pages

  
 
  

home | help
std::experi...nstructible(3)  C++ Standard Libary std::experi...nstructible(3)

NAME
       std::experimental::ranges::CopyConstructible	 -     std::experimen-
       tal::ranges::CopyConstructible

Synopsis
	  Defined in header <experimental/ranges/concepts>
	  template <class T>

	  concept bool CopyConstructible =
	  MoveConstructible<T> &&				       (ranges
       TS)
	  Constructible<T, T&> && ConvertibleTo<T&, T> &&
	  Constructible<T, const T&> &&	ConvertibleTo<const T&,	T> &&

	  Constructible<T, const T> && ConvertibleTo<const T, T>;

	  The concept CopyConstructible	is satisfied if	T is an	lvalue	refer-
       ence type, or if
	  it  is  a MoveConstructible object type where	an object of that type
       can constructed
	  from a (possibly const) lvalue or const rvalue of that type in  both
       direct- and
	  copy-initialization  contexts	 with  the  usual semantics (a copy is
       constructed with
	  the source unchanged).

	  More precisely, if T is an object type, then CopyConstructible<T> is
       satisfied only
	  if given

	    * v, a lvalue of type (possibly const) T  or  an  rvalue  of  type
       const T,

	  the following	are true:

	    * After the	definition T u = v;, u is equal	to v;
	    * T{v} is equal to v.

See also
	  is_copy_constructible
	  is_trivially_copy_constructible
	  is_nothrow_copy_constructible	   checks  if  a  type has a copy con-
       structor
	  (C++11)			  (class template)
	  (C++11)
	  (C++11)

http://cppreference.com		  2022.07.31	  std::experi...nstructible(3)

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

home | help