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

Check whether the specified data type T_To can be assigned to T_From. More...

#include <AssignableFrom.hpp>

Concept definition

template<typename T_To, typename T_From>
concept AssignableFrom = requires(T_To to, T_From from) { to = from; }
Check whether the specified data type T_To can be assigned to T_From.

Detailed Description

Check whether the specified data type T_To can be assigned to T_From.

Read the check as a variable of the type T_From is assigned to a variable of the type T_To.

Attention
it is not equal to std::is_assignable

Equivalent to execute:

T_To to;
T_From from;
to = from;

Definition at line 29 of file AssignableFrom.hpp.