eve::common_compatible< Ts > Struct Template Reference
Computes the type compatible with a list of values. More...
Detailed Description
template<typename... Ts>
struct eve::common_compatible< Ts >
struct eve::common_compatible< Ts >
Computes the type compatible with a list of values.
Required header: #include <eve/traits/common_compatible.hpp>
If all Ts...
are all identical to a given T
and model eve::value, provides the member typedef type
which is defined as T
.
If Ts...
contains a set of types modeling eve::scalar_value and a set of types modeling eve::simd_value all identical to a given T
, provides the member typedef type
which is defined as T
.
Otherwise, the program is ill-formed.
- Template Parameters
-
Ts Variadic list of types to process
Member types
Name | Definition |
---|---|
type | The type defined as compatible with all Ts... |
Helper types
template<typename Ts...>
using common_compatible_t = typename common_compatible<Ts...>::type;
Example
See it live on Compiler Explorer
Computes the type compatible with a list of values.
Definition: common_compatible.hpp:101