operator bool

operator bool#

stdgpu: stdgpu::device_unique_object::operator bool
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ operator bool()

template<typename T >
stdgpu::device_unique_object< T >::operator bool ( ) const
explicit

Checks whether the unique object is not empty.

Returns
True if the unique object is not empty, false otherwise