push

push#

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

◆ push()

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

Add the element to the stack.

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