pair

pair#

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

◆ pair() [3/8]

template<typename T1 , typename T2 >
template<typename U1 , typename U2 , 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 ( 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 pair to copy from