operator[] — stdgpu Latest documentation (original) (raw)
| allocator_type createDeviceObject createDeviceObject destroyDeviceObject destroyDeviceObject empty get_allocator mutex_array operator[] operator[] size valid valid | ◆ operator[]() [2/2] template<typename Block = mutex_default_type, typename Allocator = safe_device_allocator> STDGPU_DEVICE_ONLY const reference stdgpu::mutex_array< Block, Allocator >::operator[] ( const index_t n) const Returns a reference to the n-th mutex. Parameters [in]nThe position of the requested mutex ReturnsThe n-th mutex Precondition0 <= n < size() |
|---|