operator=

operator=#

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

◆ operator=() [2/4]

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

Copy assignment operator.

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
Returns
*this