emplace_front

emplace_front#

stdgpu: stdgpu::deque::emplace_front
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ emplace_front()

template<typename T , typename Allocator = safe_device_allocator<T>>
template<class... Args>
STDGPU_DEVICE_ONLY bool stdgpu::deque< T, Allocator >::emplace_front ( Args &&...  args)

Adds the element constructed from the arguments to the front of the object.

Parameters
[in]argsThe arguments to construct the element
Returns
True if not full, false otherwise