pop

pop#

stdgpu: stdgpu::stack::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::stack< T, ContainerT >::pop ( )

Removes and returns the current element from stack.

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