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

Concept to check if a type is an index range. More...

#include <IdxRange.hpp>

Concept definition

template<typename T, typename T_ValueType = alpaka::NotRequired, uint32_t T_dim = alpaka::notRequiredDim>
&& (std::same_as<T_ValueType, typename T::IdxType> || std::same_as<T_ValueType, alpaka::NotRequired>)
&& ((T_dim == alpaka::notRequiredDim) || (T::dim() == T_dim))
Concept to check if a type is an index range.
Definition IdxRange.hpp:240
constexpr uint32_t notRequiredDim
Definition trait.hpp:23
constexpr bool isIndexRange_v
Definition IdxRange.hpp:225

Detailed Description

Concept to check if a type is an index range.

Template Parameters
TType to check
T_ValueTypeenforce a value type of the index range, if not provided the type is not checked
T_dimenforce a dimensionality of the index range, if not provided the value is not checked

Definition at line 239 of file IdxRange.hpp.