pop_back

pop_back#

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

◆ pop_back()

template<typename T , typename Allocator = safe_device_allocator<T>>
STDGPU_DEVICE_ONLY pair< T, bool > stdgpu::vector< T, Allocator >::pop_back ( )

Removes and returns the current element from end of the object.

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