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

Check whether the specified data type matches the expected type, or if the expected type is alpaka::NotRequired, then all data types passes the concept. More...

#include <ExpectedValueType.hpp>

Concept definition

template<typename T_Data, typename T_Expected>
concept ExpectedValueType = std::same_as<T_Expected, T_Data> || std::same_as<T_Expected, alpaka::NotRequired>
Check whether the specified data type matches the expected type, or if the expected type is alpaka::N...

Detailed Description

Check whether the specified data type matches the expected type, or if the expected type is alpaka::NotRequired, then all data types passes the concept.

Definition at line 17 of file ExpectedValueType.hpp.