operator=

operator=#

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

◆ operator=() [4/4]

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

Move 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 moved pair
Returns
*this