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

Concept to check if a type is a vector or scalar variable. More...

#include <Vec.hpp>

Concept definition

template<typename T, typename T_ValueType = alpaka::NotRequired>
concept VectorOrScalar = (isVector_v<T> || std::integral<T> || std::floating_point<T>)
&& (std::same_as<T_ValueType, trait::GetValueType_t<std::decay_t<T>>>
|| std::same_as<T_ValueType, alpaka::NotRequired>)
Concept to check if a type is a vector or scalar variable.
Definition Vec.hpp:65
typename GetValueType< T >::type GetValueType_t
Definition trait.hpp:65
constexpr bool isVector_v
Definition Vec.hpp:39

Detailed Description

Concept to check if a type is a vector or scalar variable.

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

Definition at line 65 of file Vec.hpp.