pop

pop#

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

◆ pop()

template<typename T , typename ContainerT = deque<T>>
STDGPU_DEVICE_ONLY pair< T, bool > stdgpu::queue< T, ContainerT >::pop ( )

Removes and returns the first element from the queue.

Returns
The currently popped element and true if not empty, an empty element T() and false otherwise