pair

pair#

stdgpu: stdgpu::pair::pair
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ pair() [4/8]

template<typename T1 , typename T2 >
template<typename U1 , typename U2 , STDGPU_DETAIL_OVERLOAD_IF(std::is_constructible_v< T1, const U1 & > &&std::is_constructible_v< T2, const U2 & >) >
constexpr STDGPU_HOST_DEVICE stdgpu::pair< T1, T2 >::pair ( const pair< U1, U2 > &  p)
constexpr

Copy constructor.

Template Parameters
U1The type of the other pair's first element
U2The type of the other pair's second element
Parameters
[in]pThe copied pair