alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onHost::concepts::ThreadSpec Concept Reference

Concept to check if a type is a ThreadSpec. More...

#include <ThreadSpec.hpp>

Concept definition

template<typename T, typename T_IndexType = alpaka::NotRequired, uint32_t T_dim = alpaka::notRequiredDim>
&& (std::same_as<T_IndexType, alpaka::NotRequired> || std::same_as<typename T::index_type, T_IndexType>)
&& ((T_dim == alpaka::notRequiredDim) || (T::dim() == T_dim))
Concept to check if a type is a ThreadSpec.
constexpr bool isThreadSpec_v
constexpr uint32_t notRequiredDim
Definition trait.hpp:23

Detailed Description

Concept to check if a type is a ThreadSpec.

Template Parameters
TType to check
T_IndexTypeenforce a index type of the thread specification, if not provided the type is not checked
T_dimenforce a dimensionality of the thread specification, if not provided the value is not checked

Definition at line 115 of file ThreadSpec.hpp.