push

push#

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

◆ push()

template<typename T , typename ContainerT = deque<T>>
STDGPU_DEVICE_ONLY bool stdgpu::queue< T, ContainerT >::push ( const T &  element)

Add the element to the end of the queue.

Parameters
[in]elementAn element
Returns
True if not full, false otherwise