valid

valid#

stdgpu: stdgpu::mutex_array::valid
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ valid() [2/2]

template<typename Block = mutex_default_type, typename Allocator = safe_device_allocator<Block>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
bool stdgpu::mutex_array< Block, Allocator >::valid ( ExecutionPolicy &&  policy) const

Checks if the object is in valid state.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
Returns
True if the state is valid, false otherwise