pair

pair#

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

◆ pair() [2/8]

template<typename T1 , typename T2 >
template<class U1 = T1, class U2 = T2, STDGPU_DETAIL_OVERLOAD_IF(std::is_constructible_v< T1, U1 > &&std::is_constructible_v< T2, U2 >) >
constexpr STDGPU_HOST_DEVICE stdgpu::pair< T1, T2 >::pair ( U1 &&  x,
U2 &&  y 
)
constexpr

Constructor.

Template Parameters
U1The type of the first element
U2The type of the second element
Parameters
[in]xThe new first element
[in]yThe new second element