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

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

#include <Vec.hpp>

Concept definition

template<typename T, typename T_ValueType = alpaka::NotRequired, uint32_t T_dim = alpaka::notRequiredDim>
&& (std::same_as<T_ValueType, trait::GetValueType_t<std::decay_t<T>>>
|| std::same_as<T_ValueType, alpaka::NotRequired>)
&& ((T_dim == alpaka::notRequiredDim) || (T::dim() == T_dim))
Concept to check if a type is a vector.
Definition Vec.hpp:54
constexpr uint32_t notRequiredDim
Definition trait.hpp:23
constexpr bool isVector_v
Definition Vec.hpp:39

Detailed Description

Concept to check if a type is a vector.

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

Definition at line 54 of file Vec.hpp.