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

FreeBSD Manual Pages

  
 
  

home | help
deductiongu...forstd::pair(3) C++ Standard Libarydeductiongu...forstd::pair(3)

NAME
       deductionguidesforstd::pair - deductionguidesforstd::pair

Synopsis
	  Defined in header <utility>
	  template<class T1, class T2>	 (since	C++17)
	  pair(T1, T2) -> pair<T1, T2>;

	  One  deduction  guide	 is  provided for std::pair to account for the
       edge cases missed
	  by the implicit deduction guides.

	  In particular, non-copyable arguments	and array to  pointer  conver-
       sion

Example
       // Run this code

	#include <utility>

	int main()
	{
	    int	a[2], b[3];
	    std::pair  p{a,  b};  //  explicit deduction guide is used in this
       case
	}

http://cppreference.com		  2022.07.31	 deductiongu...forstd::pair(3)

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

home | help