forward

forward#

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

◆ forward() [1/2]

template<class T >
constexpr STDGPU_HOST_DEVICE T && stdgpu::forward ( std::remove_reference_t< T > &&  t)
constexprnoexcept

Forwards a value.

Template Parameters
TThe type of the value
Parameters
[in]tA value
Returns
The forwarded value