pair

pair#

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

◆ pair() [1/8]

template<typename T1 , typename T2 >
template<STDGPU_DETAIL_OVERLOAD_IF(std::is_copy_constructible_v< T1 > &&std::is_copy_constructible_v< T2 >) >
constexpr STDGPU_HOST_DEVICE stdgpu::pair< T1, T2 >::pair ( const T1 &  x,
const T2 &  y 
)
constexpr

Constructor.

Parameters
[in]xThe new first element
[in]yThe new second element